mirror of https://github.com/ouqiang/gocron
修改 当后端使用postgres数据库时 修改任务或用户状态报错问题。postgres字段区分大小写。
parent
09834ffaf6
commit
ac2f01f144
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue