From 3a1001a68ff6d762c3643d0bb5b5dc04ba407f33 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Tue, 31 May 2022 11:24:53 -0400 Subject: [PATCH] Update Synchronizer.js Fixed missing assignment after refactor. --- src/Synchronizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Synchronizer.js b/src/Synchronizer.js index cf6c252..d038b3c 100644 --- a/src/Synchronizer.js +++ b/src/Synchronizer.js @@ -44,9 +44,9 @@ module.exports = Class.extend({ var client; if (opts.localhostTarget) { - this._makeLocalDocClient(def, opts.localhostTarget); + client = this._makeLocalDocClient(def, opts.localhostTarget); } else { - this._makeDocClient(def, opts.slaveCredentials); + client = this._makeDocClient(def, opts.slaveCredentials); } return _.extend({}, def, { id: (def.region + ':' + def.name), docs: client });