tango-app-api-audit 3.4.0-alpha.14 → 3.4.0-alpha.15

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.4.0-alpha.14",
3
+ "version": "3.4.0-alpha.15",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2332,11 +2332,10 @@ export async function userMetrics( req, res ) {
2332
2332
  userId: 1,
2333
2333
  fileDate: 1,
2334
2334
  startTime: 1,
2335
+ endTime: 1,
2335
2336
  beforeCount: 1,
2336
2337
  moduleType: 1,
2337
2338
  afterCount: 1,
2338
- checkIntime: 1,
2339
- checkOutTime: 1,
2340
2339
  totalCompletedFiles: { $cond: [ { $eq: [ '$auditStatus', 'completed' ] }, 1, 0 ] },
2341
2340
  beforeCount: 1,
2342
2341
  afterCount: { $cond: [ { $eq: [ '$auditStatus', 'completed' ] }, '$afterCount', 0 ] },
@@ -2749,8 +2748,6 @@ export async function pendingSummaryTable( req, res ) {
2749
2748
  result.forEach( ( element ) => {
2750
2749
  const temp = {
2751
2750
  'Store ID': element.storeId,
2752
- 'Result': element.answer,
2753
- 'userComments': element.userComments,
2754
2751
  'File Date': element.fileDate,
2755
2752
  'Product Type': element.value,
2756
2753
  'Audit Type': element.auditType,
@@ -2762,16 +2759,13 @@ export async function pendingSummaryTable( req, res ) {
2762
2759
  switch ( inputData.moduleType ) {
2763
2760
  case 'camera-angle-change':
2764
2761
  temp['stream Name'] = element.streamName;
2765
- temp['User Comments'] = element.userCommands;
2766
2762
  break;
2767
2763
  case 'unattended-customer':
2768
2764
  temp['Customer ID'] = element.tempId;
2769
2765
  temp['Question'] = element.question;
2770
- temp['User Comments'] = element.userCommands;
2771
2766
  break;
2772
2767
  case 'left-in-middle':
2773
2768
  temp['Question'] = element.question;
2774
- temp['User Comments'] = element.userCommands;
2775
2769
  break;
2776
2770
  case 'mobile-detection':
2777
2771
  temp['Before Count'] = element.beforeCount;