Skip to content

Commit

Permalink
Added status code for signup response
Browse files Browse the repository at this point in the history
  • Loading branch information
nluu175 committed Oct 23, 2023
1 parent 99ebf12 commit 35acd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/socialdistribution/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ def post(self, request):
if serializer.is_valid():
# save update and set updatedAt to current time
serializer.save(updatedAt=timezone.now())
return Response(serializer.data)
return Response(serializer.data, status=status.HTTP_200_OK)

return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

0 comments on commit 35acd49

Please sign in to comment.