From 8b31948e3ef74d36b2658228ab20633e3f7f096c Mon Sep 17 00:00:00 2001 From: Molly Smith Date: Tue, 10 Oct 2023 14:52:34 -0600 Subject: [PATCH] data_map.js linted and visibility added --- .../mats-common/imports/startup/server/data_query_util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 15df7eedb..c890ff825 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 @@ -3142,7 +3142,7 @@ const parseQueryDataMapCTC = function ( }); let thisSite; - if (appParams.isCouchbase) { + if (matsCollections.Settings.findOne().dbType === matsTypes.DbTypes.couchbase) { thisSite = siteMap.find((obj) => obj.name === site); } else { thisSite = siteMap.find((obj) => obj.options.id === site);