Making periodic Synchronisation
This commit is contained in:
@ -167,7 +167,7 @@ class NotesProvider {
|
||||
public async start() {
|
||||
const next = () => {
|
||||
setTimeout(() => {
|
||||
this.sync().then(() => next);
|
||||
this.sync().then(next);
|
||||
}, 30000)
|
||||
}
|
||||
this.syncedObservableServer.send((await this.oplogDB.getAll()).length <= 0);
|
||||
|
Reference in New Issue
Block a user