Making periodic Synchronisation

This commit is contained in:
Fabian
2019-05-31 22:16:16 +02:00
parent c3c36504ab
commit e5b0c96434
2 changed files with 9 additions and 11 deletions

View File

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