From 61d97ec1cfd20ad7c5a5e62c3e10511f38485510 Mon Sep 17 00:00:00 2001 From: Taylor McKinnon Date: Wed, 29 Nov 2023 11:07:44 -0800 Subject: [PATCH] always set bool for this._onlyCountLatestWhenObjectLocked --- lib/UtapiReindex.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); }