Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: use serverLastSynced time from client

Abdullah Attaec85f748fa0a
diff --git a/packages/core/src/api/sync/index.js b/packages/core/src/api/sync/index.js
index 24a19f178..07898cd64 100644
--- a/packages/core/src/api/sync/index.js
+++ b/packages/core/src/api/sync/index.js
@@ -54,10 +54,10 @@ export default class SyncManager {
this._db = db;
}
- async start(full, force) {
+ async start(full, force, serverLastSynced) {
try {
await this.sync.autoSync.start();
- await this.sync.start(full, force);
+ await this.sync.start(full, force, serverLastSynced);
return true;
} catch (e) {
var isHubException = e.message.includes("HubException:");