Closed kidbrax closed 10 years ago
If you're using mongoose to migrate, just don't use the plugin until the data is already in the database. The purpose of the plugin is to add/update the dates on save.
I'll take that as a no. I am migrating our data through an existing api that uses the mongoose-timestamp plugin. I'll try to work on an option and submit a pull-request.
I have a situation where I am migrating some data and would like to preserve the modified dates from the original record. Can I manually set the created/modified dates and then have mongoose-timestamp skip its action so they are preserved?