From ddd323d883e9e1369329d36a7d8cf61f985a3e28 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 12 Oct 2015 12:05:19 -0700 Subject: [PATCH] Fix user update --- api/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/users.go b/api/users.go index 330b54d..825d9bc 100644 --- a/api/users.go +++ b/api/users.go @@ -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)