Skip to content

Commit

Permalink
hopefully resolved one of the merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaineShu0312 committed Oct 1, 2024
1 parent e8e16ad commit 0350cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csm_web/scheduler/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def user_update(request, pk):
serializer = UserSerializer(user, data=request.data, partial=True)
if serializer.is_valid():
serializer.save()
return Response(serializer.data, status=status.HTTP_201_CREATED)
return Response(serializer.data, status=status.HTTP_200_OK)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)


Expand Down

0 comments on commit 0350cf8

Please sign in to comment.