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);