added hash check to stop race
This commit is contained in:
parent
04551571db
commit
ab82ee65f0
2 changed files with 18 additions and 3 deletions
3
crud.py
3
crud.py
|
|
@ -177,3 +177,6 @@ async def get_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
|
|||
return HashCheck(lnurl=True, hash=False)
|
||||
else:
|
||||
return HashCheck(lnurl=True, hash=True)
|
||||
|
||||
async def delete_hash_check(the_hash: str) -> None:
|
||||
await db.execute("DELETE FROM withdraw.hash_check WHERE id = ?", (the_hash,))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue