user.billing: pass db instance instead of app to create_payment

This commit is contained in:
Luna Mendes 2018-11-19 04:11:05 -03:00
parent 113ba3fb89
commit 109254323e
1 changed files with 1 additions and 1 deletions

View File

@ -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)