Browse Source

fix: column is called hash, not payment_hash.

aiosqlite
fiatjaf 4 years ago
parent
commit
ab6229806c
  1. 2
      lnbits/core/crud.py

2
lnbits/core/crud.py

@ -215,7 +215,7 @@ def delete_expired_invoices() -> None:
db.execute( db.execute(
""" """
DELETE FROM apipayments DELETE FROM apipayments
WHERE pending = 1 AND payment_hash = ? WHERE pending = 1 AND hash = ?
""", """,
(invoice.payment_hash,), (invoice.payment_hash,),
) )

Loading…
Cancel
Save