From 53ab47531f3c3153c8c746ad47c797acfe25c2d8 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 11 Oct 2022 07:27:21 -0700 Subject: [PATCH] fixing replication handler. --- frontend/src/lib/database/pouchdb_repository.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }