API: IssueAttachmentDetailAPIEndpoint.delete omits pk filter in FileAsset.objects.get
In apps/api/plane/api/views/issue.py on preview (commit 7805576), IssueAttachmentDetailAPIEndpoint.delete queries FileAsset.objects.get(workspace__slug=slug, project_id=project_id, issue_id=issue_id, entity_type=FileAsset.EntityTypeContext.ISSUE_ATTACHMENT) without filtering by pk=pk. When a work item has multiple attachments, calling DELETE on a single attachment raises MultipleObjectsReturned (500), or deletes the remaining attachment even if a different pk was passed in the URL. Happy to open a PR to add pk=pk to the query if you'd like!
I think this is already fixed: on preview, IssueAttachmentDetailAPIEndpoint.delete passes id=pk to FileAsset.objects.get(...), so it only deletes the attachment named in the URL. It was already there at 7805576, the commit mentioned above. So this can probably be closed.