lib/wcc/contentful/store/cdn_adapter.rb in wcc-contentful-1.1.0 vs lib/wcc/contentful/store/cdn_adapter.rb in wcc-contentful-1.1.1
- old
+ new
@@ -103,9 +103,14 @@
end
end
def apply_operator(operator, field, expected, context = nil)
op = operator == :eq ? nil : operator
+ if expected.is_a?(Array)
+ expected = expected.join(',')
+ op = :in if op.nil?
+ end
+
param = parameter(field, operator: op, context: context, locale: true)
self.class.new(
@store,
client: @client,