🐛 Fix attachment uploader
This commit is contained in:
parent
d0927b5528
commit
9ed9e4d510
@ -4,11 +4,9 @@
|
||||
<option name="autoReloadType" value="ALL" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="18dd0d68-b4b8-40db-9734-9119b5c848bd" name="更改" comment=":bug: Provide a way to bypass nexus and serving content to prevent nexus reverse proxy issue">
|
||||
<list default="true" id="18dd0d68-b4b8-40db-9734-9119b5c848bd" name="更改" comment=":bug: Still reading the abandoned temporary dest config">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/merger.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/merger.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/pkg/internal/services/uploader.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/services/uploader.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/settings.toml" beforeDir="false" afterPath="$PROJECT_DIR$/settings.toml" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -120,7 +118,6 @@
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value=":bug: Fix mark clean required issue" />
|
||||
<MESSAGE value=":sparkles: Support use rid to get file" />
|
||||
<MESSAGE value=":boom: Replace attachment id by rid when fetching" />
|
||||
<MESSAGE value=":boom: Use attachment rid instead of primary key when create" />
|
||||
@ -145,7 +142,8 @@
|
||||
<MESSAGE value=":bug: Bug fixes" />
|
||||
<MESSAGE value=":bug: Fix hash bug" />
|
||||
<MESSAGE value=":bug: Provide a way to bypass nexus and serving content to prevent nexus reverse proxy issue" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value=":bug: Provide a way to bypass nexus and serving content to prevent nexus reverse proxy issue" />
|
||||
<MESSAGE value=":bug: Still reading the abandoned temporary dest config" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value=":bug: Still reading the abandoned temporary dest config" />
|
||||
</component>
|
||||
<component name="VgoProject">
|
||||
<settings-migrated>true</settings-migrated>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user