mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
fix issue #286
This commit is contained in:
parent
d582ee87e5
commit
b4ea4c75ad
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ async def api_usermanager_user(user_id):
|
|||
)
|
||||
async def api_usermanager_users_create():
|
||||
user = await create_usermanager_user(**g.data)
|
||||
return jsonify(user._asdict()), HTTPStatus.CREATED
|
||||
full = user._asdict()
|
||||
full["wallets"] = [wallet._asdict() for wallet in await get_usermanager_users_wallets(user.id)]
|
||||
return jsonify(full), HTTPStatus.CREATED
|
||||
|
||||
|
||||
@usermanager_ext.route("/api/v1/users/<user_id>", methods=["DELETE"])
|
||||
|
|
Loading…
Add table
Reference in a new issue