Skip to content

Ignores createdAt when update #3111

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

Merged

Conversation

yuki-takeichi
Copy link
Contributor

This PR fixes a compatibility issue for updating createdAt.

When PUT /1/classes/<className>/<objectId> is requested with body {"createdAt":{"__type":"Date","iso":"1970-01-01T00:00:00.000Z"}}, api.parse.com ignores and doesn't change createdAt.
However parse-server really updates createdAt.

That behavior of parse-server is confusing and should be fixed.

@yuki-takeichi
Copy link
Contributor Author

Test failed but it seems to be not my fault.

@flovilmart
Copy link
Contributor

LGTM! Thanks for this fix!

@flovilmart flovilmart merged commit 8556731 into parse-community:master Nov 25, 2016
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Dec 3, 2016
Jcarlosjunior pushed a commit to back4app/parse-server that referenced this pull request Dec 13, 2016
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.

3 participants