Test new PIS Query

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-24 10:39:58 +01:00
parent 6ca8de8c75
commit 49bb0627e9

View File

@ -22,8 +22,8 @@ async function findPisByOrigDest(start,end) {
] ]
} }
} }
const oldQuery = {$and:[{$expr:{$eq:[{$first:"$stops"},firstCrs]}},{$expr:{$eq:[{$last:"$stops"},lastCrs]}}]} //const oldQuery = {$and:[{$expr:{$eq:[{$first:"$stops"},firstCrs]}},{$expr:{$eq:[{$last:"$stops"},lastCrs]}}]}
const search = db.query("pis", oldQuery) const search = db.query("pis", query)
return search return search
} }