|
|
@@ -220,7 +220,7 @@ func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) { |
|
|
|
|
|
|
|
|
if remove { |
|
|
if remove { |
|
|
for i, a := range attachments { |
|
|
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 |
|
|
return i, err |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|