tango-app-api-audit 3.5.39 → 3.5.40

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.39",
3
+ "version": "3.5.40",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1706,6 +1706,7 @@ export async function summaryList( req, res ) {
1706
1706
  temp[i].RMEmail =RMEmail;
1707
1707
  const trustScore = temp[i].trustScore;
1708
1708
  temp[i].trustScore = ( trustScore == null || trustScore == undefined ) ? 'NA' :`${trustScore + ' %'}`;
1709
+ temp[i]._id = item?._id;
1709
1710
  }
1710
1711
  }
1711
1712
 
@@ -2065,7 +2066,7 @@ export async function emailAlertLog( req, res ) {
2065
2066
 
2066
2067
 
2067
2068
  logger.info( { inputData: inputData, getData: response } );
2068
- return res.sendSuccess( { result: response } );
2069
+ return res.sendSuccess( { result: response, count: response.length } );
2069
2070
  } catch ( error ) {
2070
2071
  const err = error.message || 'Internal Server Error';
2071
2072
  logger.error( { message: error, data: req.body, function: 'eyetestAudit-controller-emailAlertLog' } );