@cocreate/crud-server 1.34.0 → 1.34.1
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 +8 -0
- package/package.json +1 -1
- package/src/index.js +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.34.1](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.34.0...v1.34.1) (2024-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* getOrg query ([5a8ebf1](https://github.com/CoCreate-app/CoCreate-crud-server/commit/5a8ebf1cfa47331dbbd28e562af8e046d3a35f24))
|
|
7
|
+
* update to support new query system ([d97a68f](https://github.com/CoCreate-app/CoCreate-crud-server/commit/d97a68ff74831601fb777ab452769ebbf3870b36))
|
|
8
|
+
|
|
1
9
|
# [1.34.0](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.33.0...v1.34.0) (2024-01-08)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -229,9 +229,7 @@ class CoCreateCrudServer {
|
|
|
229
229
|
data.object = [{ _id: organization_id }]
|
|
230
230
|
else if (host)
|
|
231
231
|
data.$filter = {
|
|
232
|
-
query: [
|
|
233
|
-
{ key: "host", value: [host], operator: "$elemMatch" }
|
|
234
|
-
]
|
|
232
|
+
query: { host: { $elemMatch: { name: { $in: [host] } } } }
|
|
235
233
|
}
|
|
236
234
|
else
|
|
237
235
|
return { serverOrganization: false, error: 'An organization could not be found' }
|