@point-hub/papi 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -61209,7 +61209,7 @@ class MongoDBConnection {
|
|
|
61209
61209
|
throw new Error("Collection not found");
|
|
61210
61210
|
}
|
|
61211
61211
|
const aggregateOptions = options;
|
|
61212
|
-
const cursor = this._collection.aggregate(pipeline, aggregateOptions);
|
|
61212
|
+
const cursor = this._collection.aggregate(MongoDBHelper.stringToObjectId(pipeline), aggregateOptions);
|
|
61213
61213
|
const result = await cursor.toArray();
|
|
61214
61214
|
return MongoDBHelper.objectIdToString(result);
|
|
61215
61215
|
}
|