0x4a52466c696e74 2 bulan lalu
induk
melakukan
379a93d99b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      rest_gorm/request_list.go

+ 2 - 2
rest_gorm/request_list.go

@@ -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)
 			}
 		}
 	}