diff --git a/mongo-collection-aggregate.js b/mongo-collection-aggregate.js index 8062b51..2d8b271 100644 --- a/mongo-collection-aggregate.js +++ b/mongo-collection-aggregate.js @@ -3,5 +3,5 @@ import { Mongo } from 'meteor/mongo'; Mongo.Collection.prototype.aggregate = function(pipeline, options) { const collection = this.rawCollection(); - return Meteor.wrapAsync(collection.aggregate.bind(collection))(pipeline, options); + return collection.aggregate.bind(collection)(pipeline, options); }