fix: issue draft delete functionality (#2696)

This commit is contained in:
Bavisetti Narayan 2023-11-07 18:19:32 +05:30 committed by GitHub
parent 30d6235108
commit 8d3853b129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2230,7 +2230,7 @@ class IssueDraftViewSet(BaseViewSet):
def destroy(self, request, slug, project_id, pk=None):
issue = Issue.objects.get(workspace__slug=slug, project_id=project_id, pk=pk)
current_instance = json.dumps(
IssueSerializer(current_instance).data, cls=DjangoJSONEncoder
IssueSerializer(issue).data, cls=DjangoJSONEncoder
)
issue.delete()
issue_activity.delay(