Quote filter fields

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

No files matched your search

-1
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
}