fix(promo): count activations on payment

Allow promo usage increments to overflow the max limit when a payment completes so counters reflect paid activations only.
This commit is contained in:
kavore
2026-02-03 12:05:16 +03:00
parent d11b0cabaa
commit 3c84007f17
3 changed files with 19 additions and 41 deletions
+1 -1
View File
@@ -615,7 +615,7 @@ class SubscriptionService:
)
if activation:
await promo_code_dal.increment_promo_code_usage(
session, promo_code_id_from_payment
session, promo_code_id_from_payment, allow_overflow=True
)
else:
logging.warning(