@cocreate/crud-server 1.15.3 → 1.15.4
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/mongodb/mongodb.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.15.4](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.15.3...v1.15.4) (2022-12-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* opertor throwing a regex error ([6683f40](https://github.com/CoCreate-app/CoCreate-crud-server/commit/6683f4012353f81614a97ad997e622f985613f5a))
|
|
7
|
+
|
|
1
8
|
## [1.15.3](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.15.2...v1.15.3) (2022-12-04)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/mongodb/mongodb.js
CHANGED
|
@@ -702,12 +702,12 @@ function createQuery(filters) {
|
|
|
702
702
|
query[key][item.operator] = item.value;
|
|
703
703
|
break;
|
|
704
704
|
case '$in':
|
|
705
|
-
var in_values = [];
|
|
706
|
-
item.value.forEach(function(v) {
|
|
707
|
-
|
|
708
|
-
});
|
|
705
|
+
// var in_values = [];
|
|
706
|
+
// item.value.forEach(function(v) {
|
|
707
|
+
// in_values.push(new RegExp(".*" + v + ".*", "i"));
|
|
708
|
+
// });
|
|
709
709
|
|
|
710
|
-
query[key] = {$in :
|
|
710
|
+
query[key] = {$in : item.value }
|
|
711
711
|
break;
|
|
712
712
|
case '$nin':
|
|
713
713
|
query[key][item.operator] = item.value;
|