diff --git a/frontend/src/lib/database/pouchdb_repository.ts b/frontend/src/lib/database/pouchdb_repository.ts index e6dd42ed..84cb735b 100644 --- a/frontend/src/lib/database/pouchdb_repository.ts +++ b/frontend/src/lib/database/pouchdb_repository.ts @@ -378,7 +378,8 @@ export class PouchdbRepository implements IDatabaseRepository { return `${this.remotePouchEndpoint}/userdb-${this.toHex(username)}` } protected enableSync(userIdentifier: string){ - return this.replicationHandler = this.localPouchDb.sync(this.getRemoteUserDb(userIdentifier), {live: true, retry: true}) + this.replicationHandler = this.localPouchDb.sync(this.getRemoteUserDb(userIdentifier), {live: true, retry: true}) + return }