mirror of
https://github.com/moparisthebest/mail
synced 2025-01-31 15:10:13 -05:00
Merge pull request #10 from whiteout-io/dev/fix-sync
[WO-217] fix downstream sync
This commit is contained in:
commit
5748ee36c0
@ -463,6 +463,13 @@ define(function(require) {
|
||||
});
|
||||
}
|
||||
|
||||
// sync in the uids in ascending order, to not leave the local database in a corrupted state:
|
||||
// when the 5, 3, 1 should be synced and the client would fail at 3, but 5 was successfully synced,
|
||||
// any subsequent syncs would never fetch 1 and 3. simple solution: sync in ascending order
|
||||
delta4 = _.sortBy(delta4, function(uidWrapper) {
|
||||
return uidWrapper.uid;
|
||||
});
|
||||
|
||||
syncNextItem();
|
||||
|
||||
function syncNextItem() {
|
||||
|
Loading…
Reference in New Issue
Block a user