From 84451f250a70f56294937f95b814bd9d9f251892 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Tue, 29 Aug 2023 13:11:38 +0530 Subject: [PATCH] fix: issue votes --- apiserver/plane/api/views/issue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/api/views/issue.py b/apiserver/plane/api/views/issue.py index 0b08bb14f..499390906 100644 --- a/apiserver/plane/api/views/issue.py +++ b/apiserver/plane/api/views/issue.py @@ -1799,8 +1799,9 @@ class IssueVotePublicViewSet(BaseViewSet): actor_id=request.user.id, project_id=project_id, issue_id=issue_id, - vote=request.data.get("vote", 1), ) + issue_vote.vote = request.data.get("vote", 1) + issue_vote.save() serializer = IssueVoteSerializer(issue_vote) return Response(serializer.data, status=status.HTTP_201_CREATED) except Exception as e: