hash-bang / Node-Mongoose-Scenario

Write scenario files which quickly allow you to populate Mongo / Mongoose model contents
MIT License
7 stars 1 forks source link

fixtures not loading #1

Closed kapitanluffy closed 9 years ago

kapitanluffy commented 9 years ago

Fixtures does not work when I enable some fields.

Here it is when I disable a certain field (e.g. fullname) screenshot_39

Here it is when I enable it. It does not finish loading and does not throw any errors screenshot_40

Sometimes it happens with the password field or the location field.

kapitanluffy commented 9 years ago

The problem was next() was not called in one of the model's pre save hook. While debugging, I also noticed that the error is not properly thrown. I was made aware by the errors when I logged it in the console.

hash-bang commented 9 years ago

Ha ha. Great you managed to track it down.