修改后端使用postgres时,任务关闭/打开 错误

任务状态Status 改为 status
postgres 数据库 字段区分大小写
dependabot/npm_and_yarn/web/vue/websocket-extensions-0.1.4
Eamon 2020-04-27 15:59:10 +08:00 committed by qiang.ou
parent 93c544f0d4
commit 09834ffaf6
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func changeStatus(ctx *macaron.Context, status models.Status) string {
json := utils.JsonResponse{}
taskModel := new(models.Task)
_, err := taskModel.Update(id, models.CommonMap{
"Status": status,
"status": status,
})
if err != nil {
return json.CommonFailure(utils.FailureContent, err)