fix: job for export table to file
This commit is contained in:
@@ -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, ¶ms); err != nil {
|
||||
if err := json.Unmarshal([]byte(job.TargetParams), ¶ms); err != nil {
|
||||
c.JSON(http.StatusInternalServerError, services.ErrResp(err.Error()))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user