From 83d513aef48f6b4b56bad96740a02f5ef86a0a8c Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 19 May 2025 13:17:54 -0700 Subject: [PATCH] Continue processing Stripe events after seeing one that's > 1 day old (#30971) This mostly affects local development. It fixes a bug where we would only process one Stripe event per polling period (5 seconds) when hitting old events. Release Notes: - N/A Co-authored-by: Marshall Bowers --- crates/collab/src/api/billing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs index 34a270fc7f..dd0d5f79d9 100644 --- a/crates/collab/src/api/billing.rs +++ b/crates/collab/src/api/billing.rs @@ -971,7 +971,7 @@ async fn poll_stripe_events( .create_processed_stripe_event(&processed_event_params) .await?; - return Ok(()); + continue; } let process_result = match event.type_ {