Skip to content

Commit

Permalink
fix: correct invoice expiry for lndrest (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstar12 committed Feb 13, 2024
1 parent 20e7085 commit 293b626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnbits/nodes/lndrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async def get_invoices(
memo=invoice["memo"],
pending=invoice["state"] == "OPEN",
paid_at=invoice["settle_date"],
expiry=invoice["creation_date"] + invoice["expiry"],
expiry=int(invoice["creation_date"]) + int(invoice["expiry"]),
preimage=_decode_bytes(invoice["r_preimage"]),
bolt11=invoice["payment_request"],
)
Expand Down

0 comments on commit 293b626

Please sign in to comment.