async fixes on _invoice_listener.
This commit is contained in:
parent
bbe8d05af4
commit
28e6f40bea
1 changed files with 5 additions and 5 deletions
|
|
@ -63,10 +63,10 @@ async def invoice_listener(app):
|
||||||
|
|
||||||
async def _invoice_listener():
|
async def _invoice_listener():
|
||||||
async for checking_id in WALLET.paid_invoices_stream():
|
async for checking_id in WALLET.paid_invoices_stream():
|
||||||
g.db = await open_db()
|
g.db = open_db()
|
||||||
payment = await get_standalone_payment(checking_id)
|
payment = get_standalone_payment(checking_id)
|
||||||
if payment.is_in:
|
if payment.is_in:
|
||||||
await payment.set_pending(False)
|
payment.set_pending(False)
|
||||||
for ext_name, cb in invoice_listeners:
|
for ext_name, cb in invoice_listeners:
|
||||||
g.ext_db = await open_ext_db(ext_name)
|
g.ext_db = open_ext_db(ext_name)
|
||||||
cb(payment)
|
await cb(payment)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue