Quote filter fields

This commit is contained in:
Jamie Curnow
2024-09-11 15:22:10 +10:00
parent 9a2e5c92d5
commit e78dd069f1
6 changed files with 12 additions and 11 deletions

View File

@ -86,7 +86,6 @@ 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()
// nolint errcheck
result := db.Exec(fmt.Sprintf(`DELETE FROM %s WHERE is_system = ?`, database.QuoteTableName("user")), false)
return result.Error
}