@@ -49,9 +49,9 @@ func (s *List) Result(pg *gorm.DB, fields rest.FieldNamesList, res any) (count i
}
q := fmt.Sprintf("%s is %s null", CamelToSnake(cond.Field), cond.Operator)
if i == 0 || cond.Logic == rest.LogicAND {
- pg = pg.Where(q, cond.Value)
+ pg = pg.Where(q)
} else {
- pg = pg.Or(q, cond.Value)
+ pg = pg.Or(q)