core: use serverLastSynced time from client

This commit is contained in:
Abdullah Atta
2023-09-06 15:43:20 +05:00
parent 051b7fcb8c
commit ec85f748fa

View File

@@ -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:");