mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
prusnak's suggestion
This commit is contained in:
parent
491495aa8a
commit
7328d222a0
@ -23,7 +23,10 @@ async def wait_for_paid_invoices():
|
||||
|
||||
|
||||
async def on_invoice_paid(payment: Payment) -> None:
|
||||
if payment.extra and payment.extra.get("tag") != "shop":
|
||||
if not payment.extra:
|
||||
return
|
||||
|
||||
if payment.extra.get("tag") != "shop":
|
||||
return
|
||||
|
||||
order = await get_shop_order_invoiceid(payment.payment_hash)
|
||||
|
Loading…
Reference in New Issue
Block a user