When setting the names of the createdAt and updatedAt properties, I am getting the following error:
node_modules/mongoose-timestamp/index.js:34
.get( function () {
^
TypeError: Object function Date() { [native code] } has no method 'get'
at timestampsPlugin (node_modules/mongoose-timestamp/index.js:34:8)
at Schema.plugin (node_modules/mongoose/lib/schema.js:570:3)
at Mongoose._applyPlugins (node_modules/mongoose/lib/index.js:403:12)
at Mongoose.model (node_modules/mongoose/lib/index.js:320:12)
at NativeConnection.Connection.model (node_modules/mongoose/lib/connection.js:600:23)
This also appears to be the error that is causing the Travis tests to fail on the continuing integration server.
When setting the names of the createdAt and updatedAt properties, I am getting the following error:
node_modules/mongoose-timestamp/index.js:34 .get( function () { ^ TypeError: Object function Date() { [native code] } has no method 'get' at timestampsPlugin (node_modules/mongoose-timestamp/index.js:34:8) at Schema.plugin (node_modules/mongoose/lib/schema.js:570:3) at Mongoose._applyPlugins (node_modules/mongoose/lib/index.js:403:12) at Mongoose.model (node_modules/mongoose/lib/index.js:320:12) at NativeConnection.Connection.model (node_modules/mongoose/lib/connection.js:600:23)
This also appears to be the error that is causing the Travis tests to fail on the continuing integration server.