Skip to content

Commit

Permalink
style: 응답 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyDimension committed Aug 7, 2024
1 parent 740b2a5 commit 0063b0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion friends/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def friend_restaurant_list(request, id):

serializer = RestaurantlistSerializer(restaurants, many=True)

return Response({"results": serializer.data}, status=status.HTTP_200_OK)
return Response(serializer.data, status=status.HTTP_200_OK)
except User.DoesNotExist:
return Response(
{"message": "Friend not found"}, status=status.HTTP_404_NOT_FOUND
Expand Down
2 changes: 1 addition & 1 deletion restaurants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def user_restaurant_list(request):
restaurant_ids = user_restaurants.values_list("restaurant_id", flat=True)
restaurants = Restaurant.objects.filter(id__in=restaurant_ids)
serializer = RestaurantlistSerializer(restaurants, many=True)
return Response({"results": serializer.data}, status=status.HTTP_200_OK)
return Response(serializer.data, status=status.HTTP_200_OK)
except User.DoesNotExist:
return Response(
{"message": "Default user not found"}, status=status.HTTP_404_NOT_FOUND
Expand Down

0 comments on commit 0063b0c

Please sign in to comment.