File operations queue

This commit is contained in:
2024-07-29 00:53:40 +08:00
parent 089a9ecd9d
commit 82cb45ec53
5 changed files with 39 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ func DeleteAttachment(item models.Attachment) error {
tx.Commit()
if dat.RefCount == 0 {
return DeleteFile(dat)
PublishDeleteFileTask(dat)
}
return nil