log when subscription not exist
This commit is contained in:
parent
998e1d7aef
commit
e1ca90a28e
|
@ -549,6 +549,9 @@ def setup_paddle_callback(app: Flask):
|
||||||
|
|
||||||
Session.commit()
|
Session.commit()
|
||||||
else:
|
else:
|
||||||
|
LOG.w(
|
||||||
|
f"update non-exist subscription {subscription_id}. {request.form}"
|
||||||
|
)
|
||||||
return "No such subscription", 400
|
return "No such subscription", 400
|
||||||
elif request.form.get("alert_name") == "payment_refunded":
|
elif request.form.get("alert_name") == "payment_refunded":
|
||||||
subscription_id = request.form.get("subscription_id")
|
subscription_id = request.form.get("subscription_id")
|
||||||
|
|
Loading…
Reference in a new issue