Skip to content

Commit 5cadf68

Browse files
committed
Fixing error 500 message
1 parent c9ba984 commit 5cadf68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/market/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def create(self, request, *args, **kwargs):
267267
)
268268
listing = get_object_or_404(Listing, id=listing_id)
269269
favorites.add(listing)
270-
return Response({"favorited": True}, status=status.HTTP_201_OK)
270+
return Response({"favorited": True}, status=status.HTTP_201_CREATED)
271271

272272
def destroy(self, request, *args, **kwargs):
273273
listing_id = int(self.kwargs["listing_id"])

0 commit comments

Comments
 (0)