Skip to content

Commit 39bffb1

Browse files
committed
fix: path operator
1 parent 4f6243b commit 39bffb1

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
@@ -33,7 +33,7 @@ class CoCreateFileSystem {
3333
})
3434
if (!organization || !organization.document[0])
3535
return res.send('Organization cannot be found using the domain: ' + hostname + ' in platformDB: ' + masterOrg);
36-
36+
3737
organization_id = organization.document[0]._id
3838
}
3939

@@ -56,8 +56,8 @@ class CoCreateFileSystem {
5656
collection: 'files',
5757
filter: {
5858
query: [
59-
{name: "domains", value: [hostname, '*'], operator: "$includes"},
60-
{name: "path", value: url, operator: "$includes"}
59+
{name: "domains", value: [hostname, '*'], operator: "$in"},
60+
{name: "path", value: url, operator: "$eq"}
6161
]
6262
},
6363
organization_id

0 commit comments

Comments
 (0)