fix: update the rest of update_payment_extra calls

This commit is contained in:
Vlad Stan
2022-12-22 11:28:12 +02:00
parent b56d08a70e
commit a434731729
3 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -452,7 +452,7 @@ async def update_payment_details(
async def update_payment_extra(
hash: str,
payment_hash: str,
extra: dict,
outgoing: bool = False,
incoming: bool = False,
@@ -472,7 +472,7 @@ async def update_payment_extra(
row = await (conn or db).fetchone(
f"SELECT hash, extra from apipayments WHERE hash = ? {amount_clause}",
(hash,),
(payment_hash,),
)
if not row:
return
@@ -481,7 +481,7 @@ async def update_payment_extra(
await (conn or db).execute(
f"UPDATE apipayments SET extra = ? WHERE hash = ? {amount_clause} ",
(json.dumps(db_extra), hash),
(json.dumps(db_extra), payment_hash),
)