mirror of https://gitlab.com/litecord/litecord.git
user.billing: pass db instance instead of app to create_payment
This commit is contained in:
parent
113ba3fb89
commit
109254323e
|
|
@ -336,7 +336,7 @@ async def _create_subscription():
|
|||
SubscriptionType.PURCHASE, PaymentGateway.STRIPE,
|
||||
plan_id, 1)
|
||||
|
||||
await create_payment(new_id, app)
|
||||
await create_payment(new_id, app.db)
|
||||
|
||||
return jsonify(
|
||||
await get_subscription(new_id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue