@cocreate/crud-server 1.30.0 → 1.30.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.30.1](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.30.0...v1.30.1) (2023-11-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * prevent syncing of organization users with platform ([b0e43b9](https://github.com/CoCreate-app/CoCreate-crud-server/commit/b0e43b9df2e408674a1ffd7c0ad455a0464fc489))
7
+
1
8
  # [1.30.0](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.29.1...v1.30.0) (2023-11-12)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crud-server",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "CoCreate-crud-server",
5
5
  "keywords": [
6
6
  "cocreate-crud",
package/src/index.js CHANGED
@@ -94,8 +94,8 @@ class CoCreateCrudServer {
94
94
  if (data.method === 'object.update' && data.organization_id !== this.config.organization_id) {
95
95
  let syncKeys
96
96
  if (data.array === 'organizations')
97
- syncKeys = ['name', 'logo', 'databases', 'host', 'apis']
98
- else if (data.array === 'users')
97
+ syncKeys = ['name', 'logo', 'storage', 'host']
98
+ else if (data.array === 'userssss')
99
99
  syncKeys = ['name', 'email', 'password', 'avatar']
100
100
 
101
101
  if (syncKeys && syncKeys.length) {
@@ -110,7 +110,7 @@ class CoCreateCrudServer {
110
110
  if (object) {
111
111
  for (let key of syncKeys) {
112
112
  if (object[key])
113
- platformobject.update[0][key] = object[key]
113
+ platformUpdate.object[0][key] = object[key]
114
114
  }
115
115
  }
116
116