Skip to content

Commit 7583473

Browse files
committed
fix: masterOrg replaced with process.env.organization_id
1 parent efb4b2f commit 7583473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class CoCreateFileSystem {
2626
collection: 'organizations',
2727
filter: {
2828
query: [
29-
{name: "domains", value: hostname, operator: "$includes"}
29+
{name: "domains", value: [hostname], operator: "$in"}
3030
]
3131
}
3232

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

3737
organization_id = organization.document[0]._id
3838
}

0 commit comments

Comments
 (0)