fix: job for export table to file

This commit is contained in:
2024-08-29 14:38:22 +08:00
parent d1fd3e3343
commit dab8b3b926
2 changed files with 4 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ func (m *SysJob) GetFileExportTable(c *gin.Context) {
var response []SysJobResponse
for _, job := range results {
var params TargetParams
if err := json.Unmarshal(job.TargetParams, &params); err != nil {
if err := json.Unmarshal([]byte(job.TargetParams), &params); err != nil {
c.JSON(http.StatusInternalServerError, services.ErrResp(err.Error()))
return
}