mirror of
https://github.com/writefreely/writefreely
synced 2025-02-17 16:28:23 +00:00
remove wrapper over db.DeleteAccount
This commit is contained in:
parent
41166e5c35
commit
b83af955c3
2 changed files with 1 additions and 5 deletions
|
@ -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
2
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue