From f68fe9c38ddf19f6f1d2dfe06e3fa9432feb3c31 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 3 Nov 2022 16:22:35 +0100 Subject: [PATCH] feat(chalice): changed update user method --- api/routers/core_dynamic.py | 2 +- ee/api/routers/core_dynamic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/routers/core_dynamic.py b/api/routers/core_dynamic.py index 2ac658d73..c9c9c40c8 100644 --- a/api/routers/core_dynamic.py +++ b/api/routers/core_dynamic.py @@ -132,7 +132,7 @@ def change_password_by_invitation(data: schemas.EditPasswordByInvitationSchema = return users.set_password_invitation(new_password=data.password, user_id=user["userId"]) -@app.post('/client/members/{memberId}', tags=["client"]) +@app.put('/client/members/{memberId}', tags=["client"]) def edit_member(memberId: int, data: schemas.EditMemberSchema, context: schemas.CurrentContext = Depends(OR_context)): return users.edit_member(tenant_id=context.tenant_id, editor_id=context.user_id, changes=data, diff --git a/ee/api/routers/core_dynamic.py b/ee/api/routers/core_dynamic.py index 54d940e19..26cc397e7 100644 --- a/ee/api/routers/core_dynamic.py +++ b/ee/api/routers/core_dynamic.py @@ -136,7 +136,7 @@ def change_password_by_invitation(data: schemas.EditPasswordByInvitationSchema = return users.set_password_invitation(new_password=data.password, user_id=user["userId"], tenant_id=user["tenantId"]) -@app.post('/client/members/{memberId}', tags=["client"]) +@app.put('/client/members/{memberId}', tags=["client"]) def edit_member(memberId: int, data: schemas_ee.EditMemberSchema, context: schemas.CurrentContext = Depends(OR_context)): return users.edit_member(tenant_id=context.tenant_id, editor_id=context.user_id, changes=data,