🐛 Fix merged file isn't add to cache

This commit is contained in:
2024-08-21 01:55:40 +08:00
parent cb02b66fca
commit 479b1933b0
3 changed files with 26 additions and 27 deletions

View File

@ -44,8 +44,10 @@ func MergeFileChunks(meta models.Attachment, arrange []string) (models.Attachmen
// Do post-upload tasks
meta.IsUploaded = true
meta.FileChunks = nil
database.C.Save(&meta)
CacheAttachment(meta)
PublishAnalyzeTask(meta)
// Clean up