mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
core: use serverLastSynced time from client
This commit is contained in:
@@ -54,10 +54,10 @@ export default class SyncManager {
|
|||||||
this._db = db;
|
this._db = db;
|
||||||
}
|
}
|
||||||
|
|
||||||
async start(full, force) {
|
async start(full, force, serverLastSynced) {
|
||||||
try {
|
try {
|
||||||
await this.sync.autoSync.start();
|
await this.sync.autoSync.start();
|
||||||
await this.sync.start(full, force);
|
await this.sync.start(full, force, serverLastSynced);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
var isHubException = e.message.includes("HubException:");
|
var isHubException = e.message.includes("HubException:");
|
||||||
|
|||||||
Reference in New Issue
Block a user