Fix user deletion

This commit is contained in:
Aaron Lindsay 2017-10-07 06:29:25 -04:00
parent 8f0f64ae53
commit 6e620fe713
1 changed files with 1 additions and 1 deletions

View File

@ -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)