🐛 Fix attachment uploader

This commit is contained in:
2024-11-10 01:00:54 +08:00
parent d0927b5528
commit 9ed9e4d510
2 changed files with 4 additions and 8 deletions

View File

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