Skip to content

Commit

Permalink
fix: masterOrg replaced with process.env.organization_id
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 5, 2022
1 parent efb4b2f commit 7583473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class CoCreateFileSystem {
collection: 'organizations',
filter: {
query: [
{name: "domains", value: hostname, operator: "$includes"}
{name: "domains", value: [hostname], operator: "$in"}
]
}

})
if (!organization || !organization.document || !organization.document[0])
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' + masterOrg);
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' + process.env.organization_id);

organization_id = organization.document[0]._id
}
Expand Down

0 comments on commit 7583473

Please sign in to comment.