tango-app-api-audit 3.5.11 → 3.5.12

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audit",
3
- "version": "3.5.11",
3
+ "version": "3.5.12",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1578,7 +1578,7 @@ export async function save( req, res ) {
1578
1578
  const temp = getData?.body?.hits?.hits?.map( ( item ) => item._id );
1579
1579
  const body = temp.flatMap( ( id ) => [
1580
1580
  { update: { _index: openSearch.trackerInput, _id: id } },
1581
- { doc: { outputCluster: imgName, EmployeeStatusFinal: 1, isJunk: false } },
1581
+ { doc: { outputCluster: imgName, auditOutputCluster: imgName, EmployeeStatusFinal: 1, isJunk: false } },
1582
1582
  ] );
1583
1583
  const re= await bulkUpdate( body );
1584
1584
  logger.info( { re: re, storeId: inputData.storeId, fileDate: inputData.fileDate, function: 'tracking save - customer' } );
@@ -1709,7 +1709,7 @@ export async function save( req, res ) {
1709
1709
  logger.info( { custoemrTemp: temp } );
1710
1710
  const body = temp.flatMap( ( id ) => [
1711
1711
  { update: { _index: openSearch.trackerInput, _id: id } },
1712
- { doc: { outputCluster: 50000 } },
1712
+ { doc: { outputCluster: 50000, auditOutputCluster: 50000 } },
1713
1713
  ] );
1714
1714
  const re= await bulkUpdate( body );
1715
1715
  logger.info( { getCusId: getCusId, re: re, storeId: inputData.storeId, auditType: inputData.auditType, fileDate: inputData.fileDate, function: 'tracking save - junk false mapping' } );