@cocreate/mongodb 1.2.2 → 1.2.3
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/index.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.2.3](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.2.2...v1.2.3) (2023-04-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* data.filter.query error solved using if condition ([ab65717](https://github.com/CoCreate-app/CoCreate-mongodb/commit/ab65717ac77d900860b88c6a258a80e5d06194e9))
|
|
7
|
+
|
|
1
8
|
## [1.2.2](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.2.1...v1.2.2) (2023-04-11)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -134,8 +134,11 @@ function collection(action, data) {
|
|
|
134
134
|
|
|
135
135
|
if (result) {
|
|
136
136
|
for (let res of result) {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
if (data.filter && data.filter.query) {
|
|
138
|
+
let isFilter = queryData(res, data.filter.query)
|
|
139
|
+
if (isFilter)
|
|
140
|
+
collectionArray.push({ name: res.name, database, db: 'mongodb' })
|
|
141
|
+
} else
|
|
139
142
|
collectionArray.push({ name: res.name, database, db: 'mongodb' })
|
|
140
143
|
}
|
|
141
144
|
}
|