mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
Merge pull request #97 from simple-login/fix-cancel-subscribe
Fix the case where user cancels and re-subscribes
This commit is contained in:
commit
0055934fc3
@ -379,6 +379,10 @@ def setup_paddle_callback(app: Flask):
|
|||||||
).date()
|
).date()
|
||||||
sub.plan = plan
|
sub.plan = plan
|
||||||
|
|
||||||
|
# make sure to set the new plan as not-cancelled
|
||||||
|
# in case user cancels a plan and subscribes a new plan
|
||||||
|
sub.cancelled = False
|
||||||
|
|
||||||
LOG.debug("User %s upgrades!", user)
|
LOG.debug("User %s upgrades!", user)
|
||||||
|
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user