Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for using existing timestamp fields in the schema #37

Merged
merged 3 commits into from
Jan 12, 2017

Conversation

linusbrolin
Copy link
Contributor

This will solve issue #31

If the updatedAt or createdAt option is an empty string, the plugin will
not update that field.
This allows for schemas where maybe just createdAt is wanted.

In the query middleware I also added a check for, and remove, a possible
default value that the schema might have on an existing createdAt field.
@drudge
Copy link
Owner

drudge commented Sep 27, 2016

Hey, thanks for the contribution @linusbrolin! Would you mind adding some minimal tests for this?

@linusbrolin
Copy link
Contributor Author

@drudge Sure, I'll see if I can find some time for it soonish

@drudge drudge merged commit c75b365 into drudge:master Jan 12, 2017
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.

2 participants