mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 07:33:21 -05:00
Fix user deletion
This commit is contained in:
parent
8f0f64ae53
commit
6e620fe713
@ -278,7 +278,7 @@ func UserHandler(w http.ResponseWriter, r *http.Request, db *DB) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else if r.Method == "DELETE" {
|
} else if r.Method == "DELETE" {
|
||||||
count, err := db.Delete(&user)
|
count, err := db.Delete(user)
|
||||||
if count != 1 || err != nil {
|
if count != 1 || err != nil {
|
||||||
WriteError(w, 999 /*Internal Error*/)
|
WriteError(w, 999 /*Internal Error*/)
|
||||||
log.Print(err)
|
log.Print(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user