From 8ddaf1eb86a5c8340e935b5894f2b307d5a38f0d Mon Sep 17 00:00:00 2001 From: akvlad Date: Fri, 27 Sep 2024 14:14:44 +0300 Subject: [PATCH] small style improvements --- lib/db/maintain/index.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/db/maintain/index.js b/lib/db/maintain/index.js index ff4deff1..9330d327 100644 --- a/lib/db/maintain/index.js +++ b/lib/db/maintain/index.js @@ -43,7 +43,14 @@ let isDBCreated = false */ const upgradeSingle = async (db, key, scripts, storagePolicy, skipUnavailableShards) => { const _upgradeRequest = (request, useDefaultDB, updateVer) => { - return upgradeRequest({ db, useDefaultDB, updateVer, storage_policy: storagePolicy, skip_unavailable_shards: skipUnavailableShards }, request) + return upgradeRequest({ + db, + useDefaultDB, + updateVer, + storage_policy: + storagePolicy, + skip_unavailable_shards: skipUnavailableShards + }, request) } if (!isDBCreated) { isDBCreated = true @@ -69,7 +76,13 @@ const upgradeSingle = async (db, key, scripts, storagePolicy, skipUnavailableSha } /** - * @param opts {{db: string, useDefaultDB: boolean, updateVer: {key: number, to: number}, storage_policy: string, skip_unavailable_shards: boolean}} + * @param opts {{ + * db: string, + * useDefaultDB: boolean, + * updateVer: {key: number, to: number}, + * storage_policy: string, + * skip_unavailable_shards: boolean + * }} * @param request {string} database to update * @returns {Promise} */