[fix] hash check (#54)
This commit is contained in:
parent
f05169f994
commit
6b11dec0cc
1 changed files with 11 additions and 2 deletions
13
crud.py
13
crud.py
|
|
@ -143,11 +143,20 @@ async def create_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
|
|||
|
||||
|
||||
async def get_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
|
||||
|
||||
hash_check = await db.fetchone(
|
||||
"SELECT * FROM withdraw.hash_check WHERE id = :id", {"id": the_hash}, HashCheck
|
||||
"""
|
||||
SELECT id as hash, lnurl_id as lnurl
|
||||
FROM withdraw.hash_check WHERE id = :id
|
||||
""",
|
||||
{"id": the_hash},
|
||||
HashCheck,
|
||||
)
|
||||
hash_check_lnurl = await db.fetchone(
|
||||
"SELECT * FROM withdraw.hash_check WHERE lnurl_id = :id",
|
||||
"""
|
||||
SELECT id as hash, lnurl_id as lnurl
|
||||
FROM withdraw.hash_check WHERE lnurl_id = :id
|
||||
""",
|
||||
{"id": lnurl_id},
|
||||
HashCheck,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue