🐛 Fix uploader still using old cache api

This commit is contained in:
2024-08-21 21:32:06 +08:00
parent fea0664d62
commit 10eb0ba3bc
3 changed files with 8 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ func ReUploadFileToPermanent(meta models.Attachment) error {
}
database.C.Save(&meta)
metadataCache.Store(meta.ID, meta)
CacheAttachment(meta)
return nil
case models.DestinationTypeS3:
var destConfigured models.S3Destination
@@ -137,7 +137,7 @@ func ReUploadFileToPermanent(meta models.Attachment) error {
}
database.C.Save(&meta)
metadataCache.Store(meta.ID, meta)
CacheAttachment(meta)
return nil
default:
return fmt.Errorf("invalid destination: unsupported protocol %s", dest.Type)