Skip to content

Commit

Permalink
fix: handling organization_id if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Apr 10, 2024
1 parent d205841 commit c537cd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ class CoCreateAcme {
let organization = await this.crud.getOrganization({ host, organization_id });
if (organization.error)
return false
if (!organization_id)
organization_id = organization._id

if (organization.host) {
for (let i = 0; i < organization.host.length; i++) {
Expand Down

0 comments on commit c537cd1

Please sign in to comment.