@cocreate/lazy-loader 1.15.0 → 1.15.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 +7 -0
- package/package.json +1 -1
- package/src/server.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.15.1](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.15.0...v1.15.1) (2024-01-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* handle apikey error ([85a332a](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/85a332a9ef214a5494c6a5e780778becb15f73b9))
|
|
7
|
+
|
|
1
8
|
# [1.15.0](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.14.0...v1.15.0) (2024-01-08)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -135,9 +135,9 @@ class CoCreateLazyLoader {
|
|
|
135
135
|
|
|
136
136
|
async getApiKey(organization_id, name) {
|
|
137
137
|
let organization = await this.crud.getOrganization(organization_id, false);
|
|
138
|
-
if (
|
|
138
|
+
if (organization.error)
|
|
139
139
|
return organization.error
|
|
140
|
-
|
|
140
|
+
if (!organization.apis)
|
|
141
141
|
return { error: 'Missing apis object in organization object' }
|
|
142
142
|
if (!organization.apis[name])
|
|
143
143
|
return { error: `Missing ${name} in organization apis object` }
|