Commit 6f4c591b authored by Victoria Ahmadi's avatar Victoria Ahmadi
Browse files

Added missing status code for detailedSuggestedWorkout.

parent 603c2dd3
Pipeline #112640 failed with stages
in 1 minute and 54 seconds
......@@ -99,4 +99,4 @@ def detailedSuggestedWorkout(request, pk):
return Response({"message": "Successfully updated the suggested workout!"}, status=status.HTTP_200_OK)
return Response({"message": "Something went wrong.", "error": serializer.errors})
return Response({"message": "Something went wrong.", "error": serializer.errors}, status=status.HTTP_400_BAD_REQUEST)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment