🐛 Bug fixes on re-uploader

This commit is contained in:
2024-11-10 01:04:07 +08:00
parent 9ed9e4d510
commit 041bdc6c4d
2 changed files with 4 additions and 3 deletions

View File

@ -102,6 +102,7 @@ func ReUploadFileToPermanent(meta models.Attachment, dst int) error {
return fmt.Errorf("attachment isn't in temporary storage, unable to process")
}
meta.Destination = dst
destMap := viper.GetStringMap(fmt.Sprintf("destinations.%d", dst))
var dest models.BaseDestination