From 6e620fe71354c041e0e39590814f3a851ef5d7e8 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sat, 7 Oct 2017 06:29:25 -0400 Subject: [PATCH] Fix user deletion --- internal/handlers/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/users.go b/internal/handlers/users.go index 471dfcc..2925d51 100644 --- a/internal/handlers/users.go +++ b/internal/handlers/users.go @@ -278,7 +278,7 @@ func UserHandler(w http.ResponseWriter, r *http.Request, db *DB) { return } } else if r.Method == "DELETE" { - count, err := db.Delete(&user) + count, err := db.Delete(user) if count != 1 || err != nil { WriteError(w, 999 /*Internal Error*/) log.Print(err)