Skip to content

Commit

Permalink
修改 当后端使用postgres数据库时 修改任务或用户状态报错问题。postgres字段区分大小写。
Browse files Browse the repository at this point in the history
  • Loading branch information
EamonZhang authored and ouqiang committed Apr 28, 2020
1 parent 09834ff commit ac2f01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/routers/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac2f01f

Please sign in to comment.