Fixed multi path bug

This commit is contained in:
IrosTheBeggar 2017-10-26 13:35:09 -04:00
parent 5dfc424d61
commit 46b50b1904

View File

@ -276,7 +276,7 @@ exports.setup = function (mstream, program){
}else{
orClause = { '$or': []}
for(let vpath of req.user.vpaths){
orClause.push({'vpath' : { '$eq' : vpath}})
orClause['$or'].push({'vpath' : { '$eq' : vpath}})
}
}
@ -320,7 +320,7 @@ exports.setup = function (mstream, program){
}else{
orClause = { '$or': []}
for(let vpath of req.user.vpaths){
orClause.push({'vpath' : { '$eq' : vpath}})
orClause['$or'].push({'vpath' : { '$eq' : vpath}})
}
}