diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 75722d6..aca823d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,9 @@
-
+
-
-
@@ -120,7 +118,6 @@
-
@@ -145,7 +142,8 @@
-
+
+
true
diff --git a/pkg/internal/services/uploader.go b/pkg/internal/services/uploader.go
index 5a2f722..8a53a28 100644
--- a/pkg/internal/services/uploader.go
+++ b/pkg/internal/services/uploader.go
@@ -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)