tango-app-api-audit 3.5.3 → 3.5.4

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.3",
3
+ "version": "3.5.4",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1489,7 +1489,7 @@ export async function save( req, res ) {
1489
1489
  const ids = getId?.body?.hits?.total?.value || null;
1490
1490
  if ( ids ) {
1491
1491
  const temp = getId?.body?.hits?.hits?.map( ( item ) => item._id );
1492
- const updatedField = { isEmployee: true }; // your field updates
1492
+ const updatedField = { EmployeeStatusFinal: 0 }; // your field updates
1493
1493
  const body = temp.flatMap( ( id ) => [
1494
1494
  { update: { _index: 'tracker_process', _id: id } },
1495
1495
  { doc: updatedField },
@@ -1540,7 +1540,7 @@ export async function save( req, res ) {
1540
1540
  const temp = getData?.body?.hits?.hits?.map( ( item ) => item._id );
1541
1541
  const body = temp.flatMap( ( id ) => [
1542
1542
  { update: { _index: 'tracker_process', _id: id } },
1543
- { doc: { outputCluster: imgName, isEmployee: false, isJunk: false } },
1543
+ { doc: { outputCluster: imgName, EmployeeStatusFinal: 1, isJunk: false } },
1544
1544
  ] );
1545
1545
  const re= await bulkUpdate( body );
1546
1546
  logger.info( { re: re } );