Skip to content

Commit

Permalink
rc5
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 18, 2024
1 parent 9298eb5 commit 2427899
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions views_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from http import HTTPStatus

from fastapi import APIRouter, Depends, Query
from lnbits.core.crud import get_user_by_id
from lnbits.core.crud import get_user
from lnbits.core.models import WalletTypeInfo
from lnbits.decorators import require_admin_key
from loguru import logger
Expand All @@ -28,7 +28,7 @@ async def api_bleskomats(
wallet_ids = [wallet.wallet.id]

if all_wallets:
user = await get_user_by_id(wallet.wallet.user)
user = await get_user(wallet.wallet.user)
wallet_ids = user.wallet_ids if user else []

return await get_bleskomats(wallet_ids)
Expand Down

0 comments on commit 2427899

Please sign in to comment.