Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe: Fix invoice_plans_as_needed default value.
Anders Kaseorg13545ff88568
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex c2a65d60925..e652124c000 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -940,7 +940,9 @@ def invoice_plan(plan: CustomerPlan, event_time: datetime) -> None:plan.save(update_fields=["next_invoice_date"])-def invoice_plans_as_needed(event_time: datetime = timezone_now()) -> None:+def invoice_plans_as_needed(event_time: Optional[datetime] = None) -> None:+ if event_time is None: # nocoverage+ event_time = timezone_now()for plan in CustomerPlan.objects.filter(next_invoice_date__lte=event_time):invoice_plan(plan, event_time)