Skip to content

Commit

Permalink
Merge pull request #187 from actiontech/main
Browse files Browse the repository at this point in the history
merge Main to ee
  • Loading branch information
HuangWeiCen authored May 17, 2022
2 parents 10f8a4f + 6c13116 commit 0ce29ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqle/api/controller/v1/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ func CreateInstance(c echo.Context) error {
}
}

sqlQueryconfig := model.SqlQueryConfig{
sqlQueryConfig := model.SqlQueryConfig{
MaxPreQueryRows: 100,
QueryTimeoutSecond: 10,
}
if req.SQLQueryConfig != nil {
sqlQueryconfig = model.SqlQueryConfig{
sqlQueryConfig = model.SqlQueryConfig{
MaxPreQueryRows: req.SQLQueryConfig.MaxPreQueryRows,
QueryTimeoutSecond: req.SQLQueryConfig.QueryTimeoutSecond,
}
Expand All @@ -187,7 +187,7 @@ func CreateInstance(c echo.Context) error {
Desc: req.Desc,
AdditionalParams: additionalParams,
MaintenancePeriod: maintenancePeriod,
SqlQueryConfig: sqlQueryconfig,
SqlQueryConfig: sqlQueryConfig,
}
// set default workflow template
if req.WorkflowTemplateName == "" {
Expand Down

0 comments on commit 0ce29ea

Please sign in to comment.