feat(chalice): changed update user
This commit is contained in:
parent
781c2da711
commit
f3d9e6da57
2 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ def update(tenant_id, user_id, changes):
|
|||
{"user_id": user_id, **changes})
|
||||
)
|
||||
|
||||
return helper.dict_to_camel_case(cur.fetchone())
|
||||
return get(user_id=user_id, tenant_id=tenant_id)
|
||||
|
||||
|
||||
def create_member(tenant_id, user_id, data, background_tasks: BackgroundTasks):
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ def update(tenant_id, user_id, changes):
|
|||
{"tenant_id": tenant_id, "user_id": user_id, **changes})
|
||||
)
|
||||
|
||||
return helper.dict_to_camel_case(cur.fetchone())
|
||||
return get(user_id=user_id, tenant_id=tenant_id)
|
||||
|
||||
|
||||
def create_member(tenant_id, user_id, data, background_tasks: BackgroundTasks):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue