tango-app-api-audit 3.5.52 → 3.5.54

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.52",
3
+ "version": "3.5.54",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1207,7 +1207,7 @@ export async function summaryList( req, res ) {
1207
1207
  const limit = inputData.limit || 10;
1208
1208
  const offset = inputData.offset ? ( inputData.offset - 1 ) * limit : 0;
1209
1209
 
1210
- const sortBy = inputData?.sortBy ? [ 'coveredStepsAI', 'trustScore', 'date' ].includes( inputData.sortBy ) ? inputData.sortBy :`${inputData.sortBy}.keyword` : 'storeName.keyword';
1210
+ const sortBy = inputData?.sortBy ? [ 'coveredStepsAI', 'trustScore', 'date', 'ComplianceScore' ].includes( inputData.sortBy ) ? inputData.sortBy :`${inputData.sortBy}.keyword` : 'storeName.keyword';
1211
1211
  const order = inputData?.sortOrder || -1;
1212
1212
 
1213
1213
  let filter= [
@@ -1880,8 +1880,6 @@ export async function summaryList( req, res ) {
1880
1880
  'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
1881
1881
  'Trust Score': element?._source?.trustScore == null || element?._source?.trustScore ==undefined ? 'NA' : `${element?._source?.trustScore} %`,
1882
1882
  'Test Duration': duration || '',
1883
- 'Eye Test Status': element._source?.comment,
1884
- 'Comments ': element._source?.subComment || '',
1885
1883
  'Audit Status': element?._source?.auditStatus || '',
1886
1884
  'Audited By': userName?.userName || '',
1887
1885