Skip to content

Commit

Permalink
fix: removed getHost
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 20, 2024
1 parent 4332b6b commit 3d58b30
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,7 @@ class CoCreateAcme {
const hostKeyPath = keyPath + host + '/';
let hostPosition

if (!organization_id) {
let org = await this.crud.getHost(host)
if (org.error)
// console.log('Organization could not be found');
return false
else
organization_id = org._id
}

let organization = await this.crud.getOrganization(organization_id, false);
let organization = await this.crud.getOrganization({ host, organization_id });
if (organization.error)
return false

Expand Down

0 comments on commit 3d58b30

Please sign in to comment.