@cocreate/crud-server 1.36.2 → 1.36.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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.36.3](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.36.2...v1.36.3) (2025-09-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ensure organization is set in hosts when host is provided by platform only ([96cc9e6](https://github.com/CoCreate-app/CoCreate-crud-server/commit/96cc9e69a639c1ecd206324a3e43c578b11e4566))
7
+ * return organization object when host is provided ([0fd5870](https://github.com/CoCreate-app/CoCreate-crud-server/commit/0fd58708ca5392b718a920abefc6a21f72eae83c))
8
+
1
9
  ## [1.36.2](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.36.1...v1.36.2) (2025-05-01)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,18 +1,10 @@
1
1
  {
2
2
  "name": "@cocreate/crud-server",
3
- "version": "1.36.2",
3
+ "version": "1.36.3",
4
4
  "description": "CoCreate-crud-server",
5
5
  "keywords": [
6
6
  "cocreate-crud",
7
- "cocreate",
8
- "low-code-framework",
9
- "no-code-framework",
10
- "cocreatejs",
11
- "cocreatejs-component",
12
- "cocreate-framework",
13
- "no-code",
14
7
  "low-code",
15
- "collaborative-framework",
16
8
  "realtime",
17
9
  "realtime-framework",
18
10
  "collaboration",
package/src/index.js CHANGED
@@ -263,7 +263,9 @@ class CoCreateCrudServer {
263
263
  this.hosts[data.host] = org.object[0]
264
264
  return org.object[0]
265
265
  } else {
266
- return { serverOrganization: false, error: 'An organization could not be found in the specified dbUrl' }
266
+ if (data.host)
267
+ return (this.hosts[data.host] = organization.object[0]);
268
+ // return { serverOrganization: false, error: 'An organization could not be found in the specified dbUrl' }
267
269
  }
268
270
  } else {
269
271
  if (data.host)