Fix user update
This commit is contained in:
parent
0326b5e3c1
commit
ddd323d883
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ func (u UserService) Update(id int64, e *types.Entity, dummy string, claims *typ
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix this
|
// TODO: fix this
|
||||||
count, err := models.DBH.Update(user)
|
count, err := models.DBH.Update(user.UserBase)
|
||||||
user.Password = ""
|
user.Password = ""
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newJSONError(err, http.StatusInternalServerError)
|
return newJSONError(err, http.StatusInternalServerError)
|
||||||
|
|
Reference in a new issue