molecuel / mongolastic

Mongolastic - Mongoose middleware for elasticsearch integration
MIT License
8 stars 4 forks source link

Wrong signature for populate function #9

Open DominicBoettger opened 9 years ago

DominicBoettger commented 9 years ago

On line 90 there is the following signature mongolastic.prototype.populate = function populate(doc, schema, options, callback) {

It should be mongolastic.prototype.populate = function populate(doc, schema, callback) {

Options doesn't seem to be used by the function, cause the options are provided by the data model.