@smartsoft001/mongo 2.146.0 → 2.148.0
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/index.cjs +1 -4
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -667,10 +667,7 @@ var MongoItemRepository = class extends IItemRepository {
|
|
|
667
667
|
$text: { $search: ' "' + this.convertRegex(criteria["$search"]) + '" ' }
|
|
668
668
|
};
|
|
669
669
|
delete criteria["$search"];
|
|
670
|
-
criteria
|
|
671
|
-
...criteria,
|
|
672
|
-
...customCriteria
|
|
673
|
-
};
|
|
670
|
+
Object.assign(criteria, customCriteria);
|
|
674
671
|
}
|
|
675
672
|
convertIdInCriteria(criteria) {
|
|
676
673
|
if (criteria["id"]) {
|