From e0da499ef5c7c34016cb15e9f0defe1614e658c4 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Mon, 22 Jan 2024 16:28:04 +0530 Subject: [PATCH] chore: comment reaction serializer change --- apiserver/plane/app/serializers/issue.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/apiserver/plane/app/serializers/issue.py b/apiserver/plane/app/serializers/issue.py index 0b3b666ce..14e6cdf35 100644 --- a/apiserver/plane/app/serializers/issue.py +++ b/apiserver/plane/app/serializers/issue.py @@ -458,19 +458,6 @@ class IssueReactionSerializer(BaseSerializer): ] -class CommentReactionLiteSerializer(BaseSerializer): - actor_detail = UserLiteSerializer(read_only=True, source="actor") - - class Meta: - model = CommentReaction - fields = [ - "id", - "reaction", - "comment", - "actor_detail", - ] - - class CommentReactionSerializer(BaseSerializer): class Meta: model = CommentReaction @@ -501,7 +488,7 @@ class IssueCommentSerializer(BaseSerializer): workspace_detail = WorkspaceLiteSerializer( read_only=True, source="workspace" ) - comment_reactions = CommentReactionLiteSerializer( + comment_reactions = CommentReactionSerializer( read_only=True, many=True ) is_member = serializers.BooleanField(read_only=True)