tblobaum / mongoose-troop

plugins for your mongoose schemas.
MIT License
242 stars 29 forks source link

Created Field not created... #36

Closed kentcdodds closed 7 years ago

kentcdodds commented 10 years ago

The modified field gets on just fine, but the created field doesn't get attached to any of the schemas I'm using the plugin for... I've tried providing a createdPath, and that didn't make a difference. The weird thing is when I print out the schema immediately after calling .plugin it shows the created field in the schema, however, none of the objects in my database have acreated field, just a modified field. Am I missing something here?

This is how I'm using it: schema.plugin(troop.timestamp); where schema is one of my mongoose schemas. That's the right way to do it right?

ThomasBormans commented 9 years ago

Take a look at issue #17 if it is still necessary.

kentcdodds commented 9 years ago

I'm not working on a project that uses this anymore. Feel free to close this issue.