From 7b7f297d7e440c6ac9377242f501e42cdcb39c32 Mon Sep 17 00:00:00 2001 From: Molly Smith Date: Tue, 17 Oct 2023 15:23:27 -0600 Subject: [PATCH] ceil-vis data_map linting --- .../imports/startup/server/data_query_util.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/meteor_packages/mats-common/imports/startup/server/data_query_util.js b/meteor_packages/mats-common/imports/startup/server/data_query_util.js index c890ff825..a7dd7b474 100644 --- a/meteor_packages/mats-common/imports/startup/server/data_query_util.js +++ b/meteor_packages/mats-common/imports/startup/server/data_query_util.js @@ -1103,7 +1103,8 @@ const queryDBMapCTC = function ( dataSource, siteMap, statistic, - appParams + appParams, + true ); d = parsedData.d; dPurple = parsedData.dPurple; @@ -1143,7 +1144,8 @@ const queryDBMapCTC = function ( dataSource, siteMap, statistic, - appParams + appParams, + false ); d = parsedData.d; dPurple = parsedData.dPurple; @@ -2979,7 +2981,8 @@ const parseQueryDataMapCTC = function ( dataSource, siteMap, statistic, - appParams + appParams, + isCouchbase ) { const { hasLevels } = appParams; let highLimit = 100; @@ -3142,7 +3145,7 @@ const parseQueryDataMapCTC = function ( }); let thisSite; - if (matsCollections.Settings.findOne().dbType === matsTypes.DbTypes.couchbase) { + if (isCouchbase) { thisSite = siteMap.find((obj) => obj.name === site); } else { thisSite = siteMap.find((obj) => obj.options.id === site);