collab: Don't try to transfer usage when a Zed Pro trial is canceled (#29843)

This PR fixes an issue where we would erroneously try to transfer
existing subscription usage when a Zed Pro trial was canceled.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-05-03 10:57:54 -04:00 committed by GitHub
parent 7f8e3fd482
commit 12c26a4fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 102 additions and 50 deletions

View file

@ -1040,6 +1040,7 @@ async fn handle_customer_subscription_event(
billing_customer.user_id,
&existing_subscription,
subscription_kind,
subscription.status.into(),
new_period_start_at,
new_period_end_at,
)