pis #12
@ -16,9 +16,9 @@ async function findPisByOrigDest(start,end) {
|
||||
]
|
||||
},
|
||||
$expr: {
|
||||
$eq: [
|
||||
{ $arrayElemAt: [ "$stops", 0 ] },
|
||||
firstCrs
|
||||
$and: [
|
||||
{ $eq: [{ $arrayElemAt: [ "$stops", -1 ] }, lastCrs] },
|
||||
{ $eq: [{ $arrayElemAt: [ "$stops", 0 ] }, firstCrs] }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user