Skip to content

Commit

Permalink
修复返回错误类型
Browse files Browse the repository at this point in the history
  • Loading branch information
xff committed Feb 27, 2024
1 parent 00b682e commit 38a1a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goinsight/internal/apps/orders/services/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func executeTask(task ordersModels.InsightOrderTasks) (string, error) {
executor := api.NewExecuteSQLAPI(&config)
returnData, err := executor.Run()
if err != nil {
api.PublishMsg(task.OrderID.String(), err, "")
api.PublishMsg(task.OrderID.String(), err.Error(), "")
}
// 转换为json
data, _ := json.Marshal(returnData)
Expand Down

0 comments on commit 38a1a98

Please sign in to comment.