fix: column is called hash, not payment_hash.

This commit is contained in:
fiatjaf 2020-09-06 22:15:29 -03:00
parent d62031b068
commit ab6229806c

View File

@ -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,),
) )