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

Extended _id field checking #7

Closed tsabolov closed 10 years ago

tsabolov commented 10 years ago

Check if the _id field is present and its type is ObjectId. This is useful in case schema was defined with _id field with a type other than ObjectId. I.e. I am using mongoose-shortid and getting an error when this module trying to extract a timestamp from ObjectID.

drudge commented 10 years ago

I can't merge this PR with the package.json change.