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

Fix resolveConflicts function #405

Merged

Conversation

nponiros
Copy link
Collaborator

Update .mods of clientChange instead of the clientChange object itself.

When resolving server and client UPDATEs we tried to remove the keyPath
from the clientChange object when there was a conflicting path instead of the
clientChange.mods object.

Similarly we tried to remove nested keyPaths which were in conflict from
the clientChange object instead of its .mods object.

Update .mods of clientChange instead of the clientChange object itself.

When resolving server and client UPDATEs we tried to remove the keyPath
from the clientChange object when there was a conflicting path instead of the
clientChange.mods object.

Similarly we tried to remove nested keyPaths which were in conflict from
the clientChange object instead of its .mods object.
@dfahlander dfahlander merged commit 4e6aa42 into dexie:master Dec 20, 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.

None yet

2 participants