@cocreate/crud-server 1.36.3 → 1.36.4
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 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.36.4](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.36.3...v1.36.4) (2025-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* improve error handling for organization retrieval when host is provided ([aaeae7a](https://github.com/CoCreate-app/CoCreate-crud-server/commit/aaeae7a3e7af2fc3039275e4cb480e31686521bb))
|
|
7
|
+
|
|
1
8
|
## [1.36.3](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.36.2...v1.36.3) (2025-09-01)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -263,9 +263,11 @@ class CoCreateCrudServer {
|
|
|
263
263
|
this.hosts[data.host] = org.object[0]
|
|
264
264
|
return org.object[0]
|
|
265
265
|
} else {
|
|
266
|
-
if (data.host)
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
if (data.host) return this.hosts[data.host];
|
|
267
|
+
return {
|
|
268
|
+
serverOrganization: false,
|
|
269
|
+
error: "An organization could not be found in the specified dbUrl"
|
|
270
|
+
};
|
|
269
271
|
}
|
|
270
272
|
} else {
|
|
271
273
|
if (data.host)
|