|
@@ -46,7 +46,7 @@ func (s *List) Result(pg *gorm.DB, fields rest.FieldNamesList, res any) (count i
|
|
|
pg = pg.Or(q, cond.Value)
|
|
|
}
|
|
|
} else {
|
|
|
- if cond.Operator != "" && cond.Operator != rest.OperatorNot || cond.Operator != rest.OperatorExists {
|
|
|
+ if cond.Operator != "" && cond.Operator != rest.OperatorNot && cond.Operator != rest.OperatorExists {
|
|
|
err = rest.ErrorFiled(cond.Field, "Expected empty operator or not")
|
|
|
}
|
|
|
if cond.Operator == rest.OperatorExists {
|