fixing replication handler.

This commit is contained in:
Jason Kulatunga 2022-10-11 07:27:21 -07:00
parent ae9697331a
commit 53ab47531f
1 changed files with 2 additions and 1 deletions

View File

@ -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
}