seanemmer / mongoose-seed

Seed data population for Mongoose
MIT License
52 stars 33 forks source link

Add callback to populateModels in order to execute mongoose-seed from a grunt task #5

Closed andresgariglio closed 8 years ago

andresgariglio commented 8 years ago

It'd be really helpful to add a callback to populateModels, in order to execute mongoose-seed from a grunt task, in an async way, passing done as argument/callback.

seanemmer commented 8 years ago

Great suggestion @andresgariglio - just updated the repo and npm package

teckays commented 8 years ago

You also should fail safe call this calback call: here in case it's not provided