修改 当后端使用postgres数据库时 修改任务或用户状态报错问题。postgres字段区分大小写。

dependabot/npm_and_yarn/web/vue/websocket-extensions-0.1.4
EamonZhang 2020-04-27 16:19:19 +08:00 committed by qiang.ou
parent 09834ffaf6
commit ac2f01f144
1 changed files with 1 additions and 1 deletions

View File

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