Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stripe: Pass event_time in get_billable_licenses_for_customer.

Lauryn Menard02daa02f11f3
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 82c64471f9a..9cbc0270834 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -3927,7 +3927,7 @@ class BillingSession(ABC):
if licenses is not None and customer.exempt_from_license_number_check:
return licenses
- current_license_count = self.get_current_billed_license_count()
+ current_license_count = self.get_current_billed_license_count(event_time)
min_licenses_for_plan = self.min_licenses_for_plan(tier)
if customer.exempt_from_license_number_check: # nocoverage
billed_licenses = current_license_count