From 9cfab8c95cdcec0493ac2e8129f027cb1c1c686c Mon Sep 17 00:00:00 2001 From: sm4640 Date: Wed, 25 Jun 2025 22:58:00 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix:=20[#69]=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=A1=9C=EC=A7=81?= =?UTF-8?q?=EB=93=A4=EC=97=90=20=EC=95=88=20=EC=9D=BD=EC=9D=80=20=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EC=B9=B4=EC=9A=B4=ED=8A=B8=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/views.py | 5 ----- 1 file changed, 5 deletions(-) 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) # 내 정보 수정