Skip to content

Commit 081c3ea

Browse files
committed
Fix release attachments immediately when updating
1 parent 62a9052 commit 081c3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/release/release.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func UpdateRelease(doer *user_model.User, gitRepo *git.Repository, rel *repo_mod
227227
deletedUUIDs.Add(attach.UUID)
228228
}
229229

230-
if _, err := repo_model.DeleteAttachments(ctx, attachments, false); err != nil {
230+
if _, err := repo_model.DeleteAttachments(ctx, attachments, true); err != nil {
231231
return fmt.Errorf("DeleteAttachments [uuids: %v]: %w", delAttachmentUUIDs, err)
232232
}
233233
}

0 commit comments

Comments
 (0)