tango-app-api-infra 3.8.1-beta.21 → 3.8.1-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -923,8 +923,6 @@ export async function getTaggedStores( req, res ) {
|
|
|
923
923
|
try {
|
|
924
924
|
const openSearch = JSON.parse( process.env.OPENSEARCH );
|
|
925
925
|
const inputData = req.query;
|
|
926
|
-
inputData.clientId = inputData?.clientId?.split( ',' );
|
|
927
|
-
logger.info( { inputData: inputData.clientId } );
|
|
928
926
|
let filter = [
|
|
929
927
|
{
|
|
930
928
|
terms: { 'clientId.keyword': inputData.clientId },
|
|
@@ -1014,7 +1012,6 @@ export async function getTaggedStores( req, res ) {
|
|
|
1014
1012
|
},
|
|
1015
1013
|
},
|
|
1016
1014
|
};
|
|
1017
|
-
|
|
1018
1015
|
let temp = [];
|
|
1019
1016
|
|
|
1020
1017
|
const geteDataCount = await getOpenSearchData( openSearch.footfallDirectory, getCount );
|
|
@@ -44,11 +44,12 @@ export async function getClusters( req, res, next ) {
|
|
|
44
44
|
try {
|
|
45
45
|
const inputData=req.query;
|
|
46
46
|
// const assignedStores = req.body.assignedStores;
|
|
47
|
+
inputData.clientId = inputData?.clientId?.split( ',' );
|
|
47
48
|
const clusters = inputData?.clusters?.split( ',' ); // convert strig to array
|
|
48
49
|
// logger.info( { assignedStores, clusters } );
|
|
49
50
|
let filter =[
|
|
50
51
|
{
|
|
51
|
-
clientId: inputData.clientId,
|
|
52
|
+
clientId: { $in: inputData.clientId },
|
|
52
53
|
},
|
|
53
54
|
];
|
|
54
55
|
if ( inputData?.clusters ) {
|