diff --git a/.idea/workspace.xml b/.idea/workspace.xml index aca823d..ea90556 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,7 @@ - @@ -143,7 +142,8 @@ - true diff --git a/pkg/internal/services/uploader.go b/pkg/internal/services/uploader.go index 8a53a28..89c8729 100644 --- a/pkg/internal/services/uploader.go +++ b/pkg/internal/services/uploader.go @@ -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