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

support for customized field name for `updatedAt` and `createdAt` #9

Closed snird closed 10 years ago

snird commented 10 years ago

given as an option to the module, the options u_at and c_at to change the default field names.

drudge commented 10 years ago

@snird I'd be happy to merge this in, but can you do a couple of things for me? Can you change the option names not to be underscore-case? Secondly, can you please add some tests for this use case?

Thanks.

snird commented 10 years ago

Ok, all has been done and tests are good and pass.

Radagaisus commented 10 years ago

Hi @drudge, any updates on this pull request? @snird has added all the necessary tests and they are passing successfully. Would love to see this feature merged.

I noticed the issues tab has been dropped from this repository. Is the package still actively maintained?

drudge commented 10 years ago

@Radagaisus sorry, not sure how Issues got turned off. The project is actively maintained. I have not gotten around to merging this in yet, I want to make the tests a little more robust and merge the other PRs in before I make a new release. I'm hoping to have some time to get to it this weekend.

Radagaisus commented 10 years ago

:+1: kudos @drudge