From 440ed087284f55e3ca926cead4f4d1e0707ce143 Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 13 Apr 2023 00:33:37 +0530 Subject: [PATCH] fix: issue attachment delete (#759) --- apiserver/plane/api/views/issue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apiserver/plane/api/views/issue.py b/apiserver/plane/api/views/issue.py index a3098c381..c7910b23e 100644 --- a/apiserver/plane/api/views/issue.py +++ b/apiserver/plane/api/views/issue.py @@ -772,6 +772,7 @@ class IssueAttachmentEndpoint(BaseAPIView): def delete(self, request, slug, project_id, issue_id, pk): try: issue_attachment = IssueAttachment.objects.get(pk=pk) + issue_attachment.asset.delete(save=False) issue_attachment.delete() issue_activity.delay( type="attachment.activity.deleted",