This commit is contained in:
ben
2023-01-07 22:06:35 +00:00
parent ef456c66d7
commit 7f1a08e16a
2 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -23,7 +23,7 @@ async def get_btc_to_ln() -> List[BtcToLnSwap]:
return [BtcToLnSwap(**row) for row in rows]
async def get_token() -> Token:
async def get_token() -> Optional[Token]:
row = await db.fetchone(
f"SELECT * FROM deezy.token ORDER BY created_at DESC",
@@ -75,6 +75,7 @@ async def save_ln_to_btc(
data.tx_hex,
),
)
return
async def update_ln_to_btc(data: UpdateLnToBtcSwap) -> str:
@@ -113,3 +114,4 @@ async def save_btc_to_ln(
data.signature,
),
)
return