remove wrapper over db.DeleteAccount

pull/202/head
Rob Loranger 5 years ago
parent 41166e5c35
commit b83af955c3
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
  1. 4
      account.go
  2. 2
      app.go

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

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

Loading…
Cancel
Save