Boost CRUD API

This commit is contained in:
2024-12-28 21:41:13 +08:00
parent edbe412f97
commit d59966a03e
11 changed files with 299 additions and 22 deletions

View File

@@ -241,7 +241,7 @@ func AnalyzeAttachment(file models.Attachment) error {
if !linked {
go func() {
start = time.Now()
if err := ReUploadFileToPermanent(file, 1); err != nil {
if err := ReUploadFile(file, 1); err != nil {
log.Warn().Any("file", file).Err(err).Msg("Unable to move file to permanet storage...")
} else {
// Recycle the temporary file