mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
remove uneeded if
This commit is contained in:
parent
c90f7878d7
commit
22cafe9ed0
@ -47,10 +47,8 @@ async def api_usermanager_user(
|
||||
async def api_usermanager_users_create(data: CreateUserData):
|
||||
user = await create_usermanager_user(data)
|
||||
full = user.dict()
|
||||
wallets: list[Wallet] = await get_usermanager_users_wallets(user.id)
|
||||
if wallets:
|
||||
full["wallets"] = [
|
||||
wallet.dict() for wallet in wallets
|
||||
wallet.dict() for wallet in await get_usermanager_users_wallets(user.id)
|
||||
]
|
||||
return full
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user