Skip to content

Commit

Permalink
[fix] hash check (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 authored Dec 11, 2024
1 parent f05169f commit 6b11dec
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions crud.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 6b11dec

Please sign in to comment.