Test new PIS Query
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
6ca8de8c75
commit
49bb0627e9
@ -22,8 +22,8 @@ async function findPisByOrigDest(start,end) {
|
||||
]
|
||||
}
|
||||
}
|
||||
const oldQuery = {$and:[{$expr:{$eq:[{$first:"$stops"},firstCrs]}},{$expr:{$eq:[{$last:"$stops"},lastCrs]}}]}
|
||||
const search = db.query("pis", oldQuery)
|
||||
//const oldQuery = {$and:[{$expr:{$eq:[{$first:"$stops"},firstCrs]}},{$expr:{$eq:[{$last:"$stops"},lastCrs]}}]}
|
||||
const search = db.query("pis", query)
|
||||
return search
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user