summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-22 03:21:29 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-22 03:21:29 -0700
commitaf228ca00a4c816f03c3b46f4cf11f26fe32455e (patch)
treea14a599215f918b22397d697a970bc7b2410e412 /system/admin/handlers.go
parentc8343342aa4f8e545c9020a2003a2427387db9a7 (diff)
debugging update user handler and db code
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 6f73705..46002d2 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -299,7 +299,7 @@ func configUsersEditHandler(res http.ResponseWriter, req *http.Request) {
updatedUser.ID = usr.ID
// set user in db
- err = db.UpdateUser(updatedUser)
+ err = db.UpdateUser(usr, updatedUser)
if err != nil {
fmt.Println(err)
res.WriteHeader(http.StatusInternalServerError)