diff --git a/crud.py b/crud.py index 7dbb48e..d0c7494 100644 --- a/crud.py +++ b/crud.py @@ -37,7 +37,7 @@ async def get_eightballs(wallet_ids: Union[str, list[str]]) -> list[EightBall]: async def update_eightball(eightball: EightBall) -> EightBall: await db.execute( update_query("eightball.maintable", eightball), - (*eightball.dict().values(),), + (*eightball.dict().values(), eightball.id,), ) return eightball diff --git a/views_lnurl.py b/views_lnurl.py index 608e5cf..7b16910 100644 --- a/views_lnurl.py +++ b/views_lnurl.py @@ -50,7 +50,7 @@ async def api_lnurl_pay_cb( if not eightball: return {"status": "ERROR", "reason": "No eightball found"} - payment_request = await create_invoice( + _, payment_request = await create_invoice( wallet_id=eightball.wallet, amount=int(amount / 1000), memo=eightball.name,