@cocreate/crud-server 1.9.1 → 1.9.2

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.9.2](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.9.1...v1.9.2) (2022-07-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set collection as collections for function readCollections ([73341cf](https://github.com/CoCreate-app/CoCreate-crud-server/commit/73341cfc11cab2c10f5f21ac791806f099fcdea0))
7
+
1
8
  ## [1.9.1](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.9.0...v1.9.1) (2022-07-27)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crud-server",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "CoCreate-crud-server",
5
5
  "keywords": [
6
6
  "cocreate-crud",
package/src/list.js CHANGED
@@ -128,6 +128,7 @@ class CoCreateList {
128
128
  async readCollections(socket, data, socketInfo) {
129
129
  try {
130
130
  const self = this;
131
+ data['collection'] = 'collections'
131
132
  const db = this.dbClient.db(data['organization_id']);
132
133
  db.listCollections().toArray(function(error, result) {
133
134
  if (!error && result && result.length > 0) {