c2-mongoose 2.1.186 → 2.1.187
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.
package/dist/flow/SearchFlow.js
CHANGED
|
@@ -498,8 +498,8 @@ var SearchFlow = /** @class */ (function () {
|
|
|
498
498
|
condition[fieldName] = _this.buildRegex(value); //{ $regex: value as any, $options: 'i' }
|
|
499
499
|
filters.$and.push(condition);
|
|
500
500
|
}
|
|
501
|
-
else if (key.endsWith('
|
|
502
|
-
var fieldName = key.replace('
|
|
501
|
+
else if (key.endsWith('Exists')) {
|
|
502
|
+
var fieldName = key.replace('Exists', '');
|
|
503
503
|
condition[fieldName] = { $exists: value };
|
|
504
504
|
filters.$and.push(condition);
|
|
505
505
|
}
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -447,8 +447,8 @@ abstract class SearchFlow {
|
|
|
447
447
|
var fieldName = key.replace('Like', '')
|
|
448
448
|
condition[fieldName] = this.buildRegex(value as string) //{ $regex: value as any, $options: 'i' }
|
|
449
449
|
filters.$and.push(condition)
|
|
450
|
-
} else if (key.endsWith('
|
|
451
|
-
var fieldName = key.replace('
|
|
450
|
+
} else if (key.endsWith('Exists')) {
|
|
451
|
+
var fieldName = key.replace('Exists', '')
|
|
452
452
|
condition[fieldName] = { $exists: value as boolean }
|
|
453
453
|
filters.$and.push(condition)
|
|
454
454
|
}
|