mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: issue attachment delete (#759)
This commit is contained in:
parent
5190ea7280
commit
440ed08728
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user