fix: issue votes

This commit is contained in:
NarayanBavisetti 2023-08-29 13:11:38 +05:30
parent c65bbf865d
commit 84451f250a

View File

@ -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: