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

Added 'touch' method to the plugin #22

Closed lethalbrains closed 9 years ago

lethalbrains commented 9 years ago

Added a new method touch() to the plugin. Calling the touch method would update the model's updatedAt attribute to the current time.

drudge commented 9 years ago

Thanks for you contribution, @lethalbrains. Sorry for the delay in merging this in. Published to npm as 0.4.0.

lethalbrains commented 9 years ago

@drudge Cool.