refactor: move mark_webhook_sent into crud.py

database functions should be in crud
This commit is contained in:
dni ⚡
2024-02-21 11:14:04 -03:00
committed by Pavol Rusnak
parent c88f05c5c0
commit 54c6faa4b6
2 changed files with 14 additions and 14 deletions
+10
View File
@@ -1012,6 +1012,16 @@ async def check_internal_pending(
return row["pending"]
async def mark_webhook_sent(payment_hash: str, status: int) -> None:
await db.execute(
"""
UPDATE apipayments SET webhook_status = ?
WHERE hash = ?
""",
(status, payment_hash),
)
# balance_check
# -------------