Browse Source

Fix bug

tags/v1.21.12.1
Lunny Xiao yan 5 years ago
parent
commit
34c2b48cf1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/attachment.go

+ 1
- 1
models/attachment.go View File

@@ -220,7 +220,7 @@ func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) {

if remove {
for i, a := range attachments {
if storage.Attachments.Delete(a.RelativePath()); err != nil {
if err := storage.Attachments.Delete(a.RelativePath()); err != nil {
return i, err
}
}


Loading…
Cancel
Save