We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f05169f commit 6b11decCopy full SHA for 6b11dec
crud.py
@@ -143,11 +143,20 @@ async def create_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
143
144
145
async def get_hash_check(the_hash: str, lnurl_id: str) -> HashCheck:
146
+
147
hash_check = await db.fetchone(
- "SELECT * FROM withdraw.hash_check WHERE id = :id", {"id": the_hash}, HashCheck
148
+ """
149
+ SELECT id as hash, lnurl_id as lnurl
150
+ FROM withdraw.hash_check WHERE id = :id
151
+ """,
152
+ {"id": the_hash},
153
+ HashCheck,
154
)
155
hash_check_lnurl = await db.fetchone(
- "SELECT * FROM withdraw.hash_check WHERE lnurl_id = :id",
156
157
158
+ FROM withdraw.hash_check WHERE lnurl_id = :id
159
160
{"id": lnurl_id},
161
HashCheck,
162
0 commit comments