@cocreate/acme 1.2.8 → 1.2.9

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.2.9](https://github.com/CoCreate-app/CoCreate-acme/compare/v1.2.8...v1.2.9) (2024-04-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * handling organization_id if undefined ([c537cd1](https://github.com/CoCreate-app/CoCreate-acme/commit/c537cd18ef84d4b6d102e2028321a623756c0dfc))
7
+
1
8
  ## [1.2.8](https://github.com/CoCreate-app/CoCreate-acme/compare/v1.2.7...v1.2.8) (2024-03-18)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/acme",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Dynamic SSL certificate management leveraging the ACME protocol, designed for direct API accessibility within applications. Automates certificate creation, renewal, and retrieval, ideal for distributed applications requiring real-time, secure certificate operations.",
5
5
  "keywords": [
6
6
  "acme",
package/src/index.js CHANGED
@@ -197,6 +197,8 @@ class CoCreateAcme {
197
197
  let organization = await this.crud.getOrganization({ host, organization_id });
198
198
  if (organization.error)
199
199
  return false
200
+ if (!organization_id)
201
+ organization_id = organization._id
200
202
 
201
203
  if (organization.host) {
202
204
  for (let i = 0; i < organization.host.length; i++) {