mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
web: update last synced time on sync complete
This commit is contained in:
committed by
Abdullah Atta
parent
0894637b61
commit
aba2b0ea19
@@ -125,8 +125,9 @@ class AppStore extends BaseStore {
|
||||
this.updateSyncStatus("failed");
|
||||
});
|
||||
|
||||
db.eventManager.subscribe(EVENTS.syncCompleted, () => {
|
||||
this.updateSyncStatus("synced", false);
|
||||
db.eventManager.subscribe(EVENTS.syncCompleted, async () => {
|
||||
await this.updateLastSynced();
|
||||
this.updateSyncStatus("completed", true);
|
||||
count = 0;
|
||||
this.refresh();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user