From 041bdc6c4d24766113093cba88e65b9b4804e6ef Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 10 Nov 2024 01:04:07 +0800 Subject: [PATCH] :bug: Bug fixes on re-uploader --- .idea/workspace.xml | 6 +++--- pkg/internal/services/uploader.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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