Fix deleteall users sql

This commit is contained in:
Jamie Curnow 2023-05-29 08:29:53 +10:00
parent 81c1a7eb16
commit a2f192280b
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -83,7 +83,7 @@ func List(pageInfo model.PageInfo, filters []model.Filter, expand []string) (ent
// DeleteAll will do just that, and should only be used for testing purposes.
func DeleteAll() error {
db := database.GetDB()
result := db.Exec("DELETE FROM users")
result := db.Exec("DELETE FROM user")
return result.Error
}