diff --git a/account.go b/account.go index 5e5f03e..2a66ecf 100644 --- a/account.go +++ b/account.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) -} diff --git a/app.go b/app.go index e793902..92d5995 100644 --- a/app.go +++ b/app.go @@ -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)