Fix user update

This commit is contained in:
Matthew Dillon 2015-10-12 12:05:19 -07:00
parent 0326b5e3c1
commit ddd323d883

View file

@ -96,7 +96,7 @@ func (u UserService) Update(id int64, e *types.Entity, dummy string, claims *typ
}
// TODO: fix this
count, err := models.DBH.Update(user)
count, err := models.DBH.Update(user.UserBase)
user.Password = ""
if err != nil {
return newJSONError(err, http.StatusInternalServerError)