Skip to content

Keep existing updated at#629

Open
brunodomenget wants to merge 2 commits intolouischatriot:masterfrom
brunodomenget:keep-existing-updatedAt
Open

Keep existing updated at#629
brunodomenget wants to merge 2 commits intolouischatriot:masterfrom
brunodomenget:keep-existing-updatedAt

Conversation

@brunodomenget
Copy link

Contrary to what is stated in the doc, updatedAt is always set to new Date() on document update, even if an updatedAt value is present in the request. I added an 'if' statement that changes that behaviour and keeps the request updatedAt value if present (this is necessary for synchronization mechanism).

Contrary to what is stated in the doc, updatedAt is always set to new Date() on document update, even if an updatedAt value is present in the request. I added an 'if' statement that changes that behaviour and keeps the request updatedAt value if present (this is necessary for synchronization mechanism).
Removed unnecessary comment
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.

1 participant