✏️ Fix: [#69] 마이페이지 로직들에 안 읽은 알림 카운트 로직 제거
This commit is contained in:
@@ -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)
|
||||
|
||||
# 내 정보 수정
|
||||
|
||||
Reference in New Issue
Block a user