Skip to content

Commit

Permalink
fix possible issue with next payment at
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jan 28, 2025
1 parent def948b commit 44904c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion breathecode/payments/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def alert_payment_issue(message: str, button: str) -> None:
delta = actions.calculate_relative_delta(subscription.pay_every, subscription.pay_every_unit)

subscription.next_payment_at += delta
while utc_now > subscription.next_payment_at:
while utc_now >= subscription.next_payment_at:
subscription.next_payment_at += delta
if subscription.valid_until:
subscription.valid_until += delta
Expand Down

0 comments on commit 44904c8

Please sign in to comment.