@infrab4a/connect 0.13.1-beta.1 → 0.13.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1567,12 +1567,8 @@
1567
1567
  queryReference = queryReference.where(fieldName.toString(), '<=', options.value + "~");
1568
1568
  return queryReference;
1569
1569
  }
1570
- if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.IN) {
1571
- if (Array.isArray(options === null || options === void 0 ? void 0 : options.value))
1572
- return queryReference.where(fieldName.toString(), 'array-contains', options.value);
1573
- if (lodash.isString(options === null || options === void 0 ? void 0 : options.value))
1574
- return queryReference.where(fieldName.toString(), 'in', options.value);
1575
- }
1570
+ if ((options === null || options === void 0 ? void 0 : options.operator) === exports.Where.IN && Array.isArray(options === null || options === void 0 ? void 0 : options.value))
1571
+ return queryReference.where(fieldName.toString(), 'array-contains', options.value);
1576
1572
  if (lodash.isObject(options) && lodash.isNil(options === null || options === void 0 ? void 0 : options.operator) && lodash.isNil(options === null || options === void 0 ? void 0 : options.value))
1577
1573
  return Object.keys(options).reduce(function (queryReferenceWithWhere, key) { return _this.buildWhereSentence(queryReferenceWithWhere, fieldName + "." + key, options[key]); }, queryReference);
1578
1574
  return queryReference.where(fieldName.toString(), (options === null || options === void 0 ? void 0 : options.operator) || '==', (options === null || options === void 0 ? void 0 : options.value) || options);