0x4a52466c696e74 1 mese fa
parent
commit
28c8859fee
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      rest_gorm/request_list.go

+ 1 - 1
rest_gorm/request_list.go

@@ -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 {