tango-app-api-infra 3.9.5-vms.55 → 3.9.5-vms.56
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
|
@@ -2362,6 +2362,11 @@ export async function openTicketList( req, res ) {
|
|
|
2362
2362
|
},
|
|
2363
2363
|
_source: [ 'ticketId', 'storeName', 'storeId', 'dateString', 'revicedFootfall', 'footfallCount', 'revicedPerc', 'type' ],
|
|
2364
2364
|
};
|
|
2365
|
+
// INSERT_YOUR_CODE
|
|
2366
|
+
// Add sorting by revicedPerc descending (highest revised accuracy first)
|
|
2367
|
+
openSearchQuery.sort = [
|
|
2368
|
+
{ 'revicedPerc.keyword': { order: inputData?.sortOrder === 1? 'asc':'desc' } },
|
|
2369
|
+
];
|
|
2365
2370
|
|
|
2366
2371
|
|
|
2367
2372
|
// Assuming getOpenSearchData and openSearch.footfallDirectoryTagging are available
|