@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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@point-hub/papi",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Point API Framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",