mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-20 13:37:35 +02:00
fix: column selection
This commit is contained in:
parent
2b260bfdaf
commit
03ba28d0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ async def get_wallet_for_key(
|
|||
) -> Wallet | None:
|
||||
wallet = await (conn or db).fetchone(
|
||||
"""
|
||||
SELECT *, COALESCE((
|
||||
SELECT wallets.*, COALESCE((
|
||||
SELECT balance FROM balances WHERE wallet_id = wallets.id
|
||||
), 0)
|
||||
AS balance_msat FROM wallets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue