remove wrapper over db.DeleteAccount

This commit is contained in:
Rob Loranger 2019-11-05 12:20:07 -08:00
parent 41166e5c35
commit b83af955c3
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
2 changed files with 1 additions and 5 deletions

View File

@ -1068,7 +1068,3 @@ func getTempInfo(app *App, key string, r *http.Request, w http.ResponseWriter) s
// Return value
return s
}
func deleteAccount(app *App, userID int64) error {
return app.db.DeleteAccount(userID)
}

2
app.go
View File

@ -718,7 +718,7 @@ func DoDeleteAccount(apper Apper, username string) error {
}
log.Info("Deleting...")
err = deleteAccount(apper.App(), userID)
err = apper.App().db.DeleteAccount(userID)
if err != nil {
log.Error("%s", err)
os.Exit(1)