mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Fixed multi path bug
This commit is contained in:
parent
5dfc424d61
commit
46b50b1904
@ -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}})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user