tango-app-api-audit 3.4.23 → 3.4.24
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
|
@@ -4735,6 +4735,9 @@ export async function auditViewLogs( req, res ) {
|
|
|
4735
4735
|
],
|
|
4736
4736
|
},
|
|
4737
4737
|
},
|
|
4738
|
+
'sort': [
|
|
4739
|
+
{ createdAt: { order: 'desc' } },
|
|
4740
|
+
],
|
|
4738
4741
|
};
|
|
4739
4742
|
break;
|
|
4740
4743
|
case 'left-in-middle':
|
|
@@ -4771,6 +4774,9 @@ export async function auditViewLogs( req, res ) {
|
|
|
4771
4774
|
],
|
|
4772
4775
|
},
|
|
4773
4776
|
},
|
|
4777
|
+
'sort': [
|
|
4778
|
+
{ createdAt: { order: 'desc' } },
|
|
4779
|
+
],
|
|
4774
4780
|
};
|
|
4775
4781
|
break;
|
|
4776
4782
|
case 'uniform-detection':
|
|
@@ -4803,6 +4809,9 @@ export async function auditViewLogs( req, res ) {
|
|
|
4803
4809
|
],
|
|
4804
4810
|
},
|
|
4805
4811
|
},
|
|
4812
|
+
'sort': [
|
|
4813
|
+
{ createdAt: { order: 'desc' } },
|
|
4814
|
+
],
|
|
4806
4815
|
};
|
|
4807
4816
|
break;
|
|
4808
4817
|
case 'hygiene':
|
|
@@ -4839,6 +4848,9 @@ export async function auditViewLogs( req, res ) {
|
|
|
4839
4848
|
],
|
|
4840
4849
|
},
|
|
4841
4850
|
},
|
|
4851
|
+
'sort': [
|
|
4852
|
+
{ createdAt: { order: 'desc' } },
|
|
4853
|
+
],
|
|
4842
4854
|
};
|
|
4843
4855
|
break;
|
|
4844
4856
|
case 'camera-angle-change':
|
|
@@ -4875,6 +4887,9 @@ export async function auditViewLogs( req, res ) {
|
|
|
4875
4887
|
],
|
|
4876
4888
|
},
|
|
4877
4889
|
},
|
|
4890
|
+
'sort': [
|
|
4891
|
+
{ createdAt: { order: 'desc' } },
|
|
4892
|
+
],
|
|
4878
4893
|
};
|
|
4879
4894
|
break;
|
|
4880
4895
|
default:
|
|
@@ -4886,7 +4901,7 @@ export async function auditViewLogs( req, res ) {
|
|
|
4886
4901
|
logger.info( { logs: logs.body.hits, inputData: inputData, auditLog: parsedOpenSearch.auditLog } );
|
|
4887
4902
|
if ( logs.body.hits.hits.length > 0 ) {
|
|
4888
4903
|
const sourcesArray = logs.body.hits.hits.map( ( hit ) => hit._source );
|
|
4889
|
-
for ( const i of sourcesArray ) { // Loop through sourcesArray
|
|
4904
|
+
for ( const i of sourcesArray ) { // Loop through sourcesArray
|
|
4890
4905
|
if ( i.logSubType == 'auditDone' ) {
|
|
4891
4906
|
const convertedTime = await convertTimestampToDateTime( i.logData.endTime );
|
|
4892
4907
|
logData.push( {
|
|
@@ -2715,6 +2715,7 @@ export async function pendingSummaryTable( req, res ) {
|
|
|
2715
2715
|
storeId: 1,
|
|
2716
2716
|
streamName: 1,
|
|
2717
2717
|
tempId: 1,
|
|
2718
|
+
zoneName: 1,
|
|
2718
2719
|
question: 1,
|
|
2719
2720
|
questionType: 1,
|
|
2720
2721
|
answer: 1,
|
|
@@ -2769,6 +2770,7 @@ export async function pendingSummaryTable( req, res ) {
|
|
|
2769
2770
|
storeId: 1,
|
|
2770
2771
|
streamName: 1,
|
|
2771
2772
|
tempId: 1,
|
|
2773
|
+
zoneName: 1,
|
|
2772
2774
|
question: 1,
|
|
2773
2775
|
questionType: 1,
|
|
2774
2776
|
answer: 1,
|