drudge / mongoose-timestamp

Adds createdAt and updatedAt date attributes that get auto-assigned to the most recent create/update timestamp
Other
308 stars 64 forks source link

Object function Date() has no method 'get' #14

Closed bbengfort closed 10 years ago

bbengfort commented 10 years ago

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.