mirror of https://github.com/ouqiang/gocron
修改后端使用postgres时,任务关闭/打开 错误
任务状态Status 改为 status postgres 数据库 字段区分大小写dependabot/npm_and_yarn/web/vue/websocket-extensions-0.1.4
parent
93c544f0d4
commit
09834ffaf6
|
@ -251,7 +251,7 @@ func changeStatus(ctx *macaron.Context, status models.Status) string {
|
||||||
json := utils.JsonResponse{}
|
json := utils.JsonResponse{}
|
||||||
taskModel := new(models.Task)
|
taskModel := new(models.Task)
|
||||||
_, err := taskModel.Update(id, models.CommonMap{
|
_, err := taskModel.Update(id, models.CommonMap{
|
||||||
"Status": status,
|
"status": status,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return json.CommonFailure(utils.FailureContent, err)
|
return json.CommonFailure(utils.FailureContent, err)
|
||||||
|
|
Loading…
Reference in New Issue