Skip to content

Commit 8d19734

Browse files
committed
fix: domains renamd to hosts
1 parent c849c7d commit 8d19734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 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: "$in"}
29+
{name: "hosts", value: [hostname], operator: "$in"}
3030
]
3131
},
3232
organization_id: process.env.organization_id
3333
})
3434
if (!organization || !organization.document || !organization.document[0])
35-
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' + process.env.organization_id);
35+
return res.send('Organization cannot be found using the host: ' + hostname + ' in platformDB: ' + process.env.organization_id);
3636

3737
organization_id = organization.document[0]._id
3838
}
@@ -55,7 +55,7 @@ class CoCreateFileSystem {
5555
collection: 'files',
5656
filter: {
5757
query: [
58-
{name: "domains", value: [hostname, '*'], operator: "$in"},
58+
{name: "hosts", value: [hostname, '*'], operator: "$in"},
5959
{name: "path", value: url, operator: "$eq"}
6060
]
6161
},

0 commit comments

Comments
 (0)