mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-30 23:00:18 +02:00
better sort sql clause
This commit is contained in:
parent
3bb11dc487
commit
6eb9c5d9ee
@ -216,9 +216,10 @@ async def m007_set_invoice_expiries(db):
|
||||
SELECT bolt11, checking_id
|
||||
FROM apipayments
|
||||
WHERE pending = true
|
||||
AND amount > 0
|
||||
AND bolt11 IS NOT NULL
|
||||
AND expiry IS NULL
|
||||
AND amount > 0 AND time < {db.timestamp_now}
|
||||
AND time < {db.timestamp_now}
|
||||
"""
|
||||
)
|
||||
).fetchall()
|
||||
|
Loading…
x
Reference in New Issue
Block a user