remove extra check

This commit is contained in:
callebtc 2023-01-05 13:08:39 +01:00
parent 8b60c64ade
commit f45db909fd

View file

@ -48,8 +48,7 @@ async def call_webhook_on_paid(payment_hash):
async def on_invoice_paid(payment: Payment) -> None: async def on_invoice_paid(payment: Payment) -> None:
if not payment.extra:
return
if payment.extra.get("tag") == "lnaddress": if payment.extra.get("tag") == "lnaddress":
await payment.set_pending(False) await payment.set_pending(False)
await set_address_paid(payment_hash=payment.payment_hash) await set_address_paid(payment_hash=payment.payment_hash)