diff --git a/lib/UtapiReindex.js b/lib/UtapiReindex.js index 661d5436..d671e238 100644 --- a/lib/UtapiReindex.js +++ b/lib/UtapiReindex.js @@ -61,9 +61,7 @@ class UtapiReindex { this._log = new werelogs.Logger('UtapiReindex', { level, dump }); } - if (config && config.onlyCountLatestWhenObjectLocked) { - this._onlyCountLatestWhenObjectLocked = true; - } + this._onlyCountLatestWhenObjectLocked = (config && config.onlyCountLatestWhenObjectLocked !== undefined); this._requestLogger = this._log.newRequestLogger(); }