save lightning invoices

This commit is contained in:
callebtc
2022-10-18 11:16:30 +02:00
parent 990e46fbb0
commit c110715f28
6 changed files with 144 additions and 128 deletions

View File

@@ -135,7 +135,7 @@ async def get_lightning_invoice(
""",
(hash,),
)
return Invoice.from_row(row)
return Invoice(**row)
async def update_lightning_invoice(
@@ -204,4 +204,4 @@ async def get_keyset(
""",
tuple(values),
)
return [MintKeyset.from_row(row) for row in rows]
return [MintKeyset(**row) for row in rows]