Skip to content

Commit bbd0a3f

Browse files
committed
fix: sync msg
1 parent 07fb578 commit bbd0a3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ext/sw/sync.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import hashCode from '@/services/hash';
77

88
const MAX_CONCURRENT = 50;
99
const BATCH_SIZE = 100;
10-
const PROGRESS_UPDATE_INTERVAL = 1000;
10+
const PROGRESS_UPDATE_INTERVAL = 3000;
1111

1212
const bookmarkStorage = new BookmarkStorage();
1313
const attributeStorage = new AttributeStorage();
@@ -85,6 +85,7 @@ const sync = async () => {
8585
bookmarksToProcess.push(bookmark);
8686
}
8787
}
88+
bookmarksToProcess.sort((a, b) => String(a.id).localeCompare(String(b.id)));
8889

8990
console.log(`To process: ${bookmarksToProcess.length}`);
9091

0 commit comments

Comments
 (0)