From d1e834eb6f79104123cca9ae578479bca78d4cef Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 22 Jun 2023 19:48:28 +0530 Subject: [PATCH] chore: updated user onboarded response (#1365) --- apiserver/plane/api/views/people.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apiserver/plane/api/views/people.py b/apiserver/plane/api/views/people.py index 9dad5380b..8e19fea1a 100644 --- a/apiserver/plane/api/views/people.py +++ b/apiserver/plane/api/views/people.py @@ -98,20 +98,6 @@ class UpdateUserOnBoardedEndpoint(BaseAPIView): user = User.objects.get(pk=request.user.id) user.is_onboarded = request.data.get("is_onboarded", False) user.save() - - if user.last_workspace_id is not None: - user_role = WorkspaceMember.objects.filter( - workspace_id=user.last_workspace_id, member=request.user.id - ).first() - return Response( - { - "message": "Updated successfully", - "role": user_role.company_role - if user_role is not None - else None, - }, - status=status.HTTP_200_OK, - ) return Response( {"message": "Updated successfully"}, status=status.HTTP_200_OK )