✏️ Fix: [#69] 마이페이지 로직들에 안 읽은 알림 카운트 로직 제거

This commit is contained in:
sm4640
2025-06-25 22:58:00 +09:00
parent 05f0f44d24
commit 9cfab8c95c

View File

@@ -227,7 +227,6 @@ class MyPageProfileAPIView(APIView):
serializer = UserProfileSerializer(target_user) serializer = UserProfileSerializer(target_user)
data = serializer.data data = serializer.data
data['represent_portfolio_id'] = UserToPortfolioService.get_represent_portfolio(target_user) 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(data, status=status.HTTP_200_OK)
# 프로필 수정 # 프로필 수정
@@ -245,7 +244,6 @@ class MyPageProfileAPIView(APIView):
serializer.save() serializer.save()
data = serializer.data data = serializer.data
data['represent_portfolio_id'] = UserToPortfolioService.get_represent_portfolio(target_user) 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(data, status=status.HTTP_200_OK)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
else: else:
@@ -301,8 +299,6 @@ class MyPageWorkListAPIView(APIView):
} }
else: else:
return Response({"message": "not allowed retreive_type"}, status=status.HTTP_400_BAD_REQUEST) 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) return Response(data, status=status.HTTP_200_OK)
class MyPageMemberInfoAPIView(APIView): class MyPageMemberInfoAPIView(APIView):
@@ -312,7 +308,6 @@ class MyPageMemberInfoAPIView(APIView):
user = request.user user = request.user
serializer = UserMemberInfoSerializer(user) serializer = UserMemberInfoSerializer(user)
data = serializer.data data = serializer.data
data['new_notification_count'] = UserToNotificationService.get_new_notification_count(user)
return Response(data, status=status.HTTP_200_OK) return Response(data, status=status.HTTP_200_OK)
# 내 정보 수정 # 내 정보 수정