diff --git a/users/views.py b/users/views.py index 381eaf0..7ea9eea 100644 --- a/users/views.py +++ b/users/views.py @@ -227,7 +227,6 @@ class MyPageProfileAPIView(APIView): serializer = UserProfileSerializer(target_user) data = serializer.data data['represent_portfolio_id'] = UserToPortfolioService.get_represent_portfolio(target_user) - data['new_notification_count'] = UserToNotificationService.get_new_notification_count(user) return Response(data, status=status.HTTP_200_OK) # 프로필 수정 @@ -245,7 +244,6 @@ class MyPageProfileAPIView(APIView): serializer.save() data = serializer.data data['represent_portfolio_id'] = UserToPortfolioService.get_represent_portfolio(target_user) - data['new_notification_count'] = UserToNotificationService.get_new_notification_count(user) return Response(data, status=status.HTTP_200_OK) return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) else: @@ -301,8 +299,6 @@ class MyPageWorkListAPIView(APIView): } else: return Response({"message": "not allowed retreive_type"}, status=status.HTTP_400_BAD_REQUEST) - - data['new_notification_count'] = UserToNotificationService.get_new_notification_count(user) return Response(data, status=status.HTTP_200_OK) class MyPageMemberInfoAPIView(APIView): @@ -312,7 +308,6 @@ class MyPageMemberInfoAPIView(APIView): user = request.user serializer = UserMemberInfoSerializer(user) data = serializer.data - data['new_notification_count'] = UserToNotificationService.get_new_notification_count(user) return Response(data, status=status.HTTP_200_OK) # 내 정보 수정