Fixed create

This commit is contained in:
arcbtc 2023-12-28 21:53:57 +00:00
parent ea75373532
commit c749da80dd
4 changed files with 83 additions and 63 deletions

View file

@ -11,14 +11,13 @@ async def create_temp(wallet_id: str, data: CreateTempData) -> Temp:
temp_id = urlsafe_short_hash()
await db.execute(
"""
INSERT INTO tempextension.temp (id, wallet, name, total)
VALUES (?, ?, ?, ?)
INSERT INTO tempextension.temp (id, wallet, name, lnurlpayamount, lnurlwithdrawamount)
VALUES (?, ?, ?, ?, ?)
""",
(
temp_id,
wallet_id,
data.name,
data.total,
data.lnurlpayamount,
data.lnurlwithdrawamount
),