remove extra check
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user