1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00
This commit is contained in:
Mel O'Hagan 2022-10-12 18:55:22 +01:00
parent 98871064a9
commit cd5930450e

View file

@ -571,7 +571,9 @@ class MongoIntegration implements IntegrationBase {
}
} else {
const stages: Array<any> = query.json as Array<any>
for await (const doc of collection.aggregate(stages ? this.createObjectIds(stages) : [])) {
for await (const doc of collection.aggregate(
stages ? this.createObjectIds(stages) : []
)) {
response.push(doc)
}
}