Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(stripe): support unknown stripe subscriptions mapping to haiku by default (#2524)
Will Hutchinson3070956acd07
diff --git a/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs b/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rsindex 1b4a49187f..2f5e2abf3a 100644--- a/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs+++ b/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs@@ -366,7 +366,10 @@ async fn handle_customer_subscription_event(id if id == ctx.stripe_price_ids.stripe_price_id_haiku.as_ref() => ProductTier::Haiku,id if id == ctx.stripe_price_ids.stripe_price_id_sonnet.as_ref() => ProductTier::Sonnet,id if id == ctx.stripe_price_ids.stripe_price_id_opus.as_ref() => ProductTier::Opus,- _ => anyhow::bail!("unsupported price id: {price_id}"),+ _ => {+ tracing::warn!(price_id=?price_id.as_str(), "unsupported price id, defaulting to haiku tier");+ ProductTier::Haiku+ }};ctx.user_roles_and_permissions_service