From 85deabf610d498a555023fae77ac74f6a6d490c0 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 24 Dec 2018 21:07:10 -0300 Subject: [PATCH] user.billing_job: fix bug on create_payment call --- litecord/blueprints/user/billing_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/user/billing_job.py b/litecord/blueprints/user/billing_job.py index b79060e..df004d3 100644 --- a/litecord/blueprints/user/billing_job.py +++ b/litecord/blueprints/user/billing_job.py @@ -89,7 +89,7 @@ async def _process_user_payments(app, user_id: int): # create_payment does not call any Stripe # or BrainTree APIs at all, since we'll just # give it as free. - await create_payment(sub_id, app) + await create_payment(sub_id, app.db) else: log.debug('sid={}, missing {} days', sub_id, threshold - delta.days)