Skip to content

Conversation

@nimbinatus
Copy link
Member

Mongo's TTL index needs a BSON date, which is generated by the Date object. Just adding another field rather than modifying the lastUpdated field to preserve any other dependencies.

Fixes #87

@nimbinatus nimbinatus self-assigned this Aug 15, 2017
Copy link

@cyrichardson cyrichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sensible to me.

Responding to "Just a nit: TTL in the name implies to me that the var contains a length of time, not a timestamp. Could you call it lastUpdated2 or something like that?"
Copy link
Contributor

@robb-romans robb-romans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nimbinatus
Copy link
Member Author

:shipit:

@nimbinatus nimbinatus merged commit 2cb99c8 into master Oct 10, 2017
@nimbinatus nimbinatus deleted the nimbinatus-patch-1 branch October 10, 2017 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants