tango-app-api-audit 3.4.64 → 3.4.66
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/README.md +28 -28
- package/package.json +1 -1
- package/src/controllers/traxAudit.controllers.js +14 -4
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# README #
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
-
|
|
5
|
-
### What is this repository for? ###
|
|
6
|
-
|
|
7
|
-
* Quick summary
|
|
8
|
-
* Version
|
|
9
|
-
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
-
|
|
11
|
-
### How do I get set up? ###
|
|
12
|
-
|
|
13
|
-
* Summary of set up
|
|
14
|
-
* Configuration
|
|
15
|
-
* Dependencies
|
|
16
|
-
* Database configuration
|
|
17
|
-
* How to run tests
|
|
18
|
-
* Deployment instructions
|
|
19
|
-
|
|
20
|
-
### Contribution guidelines ###
|
|
21
|
-
|
|
22
|
-
* Writing tests
|
|
23
|
-
* Code review
|
|
24
|
-
* Other guidelines
|
|
25
|
-
|
|
26
|
-
### Who do I talk to? ###
|
|
27
|
-
|
|
28
|
-
* Repo owner or admin
|
|
1
|
+
# README #
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
+
|
|
5
|
+
### What is this repository for? ###
|
|
6
|
+
|
|
7
|
+
* Quick summary
|
|
8
|
+
* Version
|
|
9
|
+
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
+
|
|
11
|
+
### How do I get set up? ###
|
|
12
|
+
|
|
13
|
+
* Summary of set up
|
|
14
|
+
* Configuration
|
|
15
|
+
* Dependencies
|
|
16
|
+
* Database configuration
|
|
17
|
+
* How to run tests
|
|
18
|
+
* Deployment instructions
|
|
19
|
+
|
|
20
|
+
### Contribution guidelines ###
|
|
21
|
+
|
|
22
|
+
* Writing tests
|
|
23
|
+
* Code review
|
|
24
|
+
* Other guidelines
|
|
25
|
+
|
|
26
|
+
### Who do I talk to? ###
|
|
27
|
+
|
|
28
|
+
* Repo owner or admin
|
|
29
29
|
* Other community or team contact
|
package/package.json
CHANGED
|
@@ -4640,7 +4640,7 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
4640
4640
|
let filterQuery ={};
|
|
4641
4641
|
let filter=[];
|
|
4642
4642
|
switch ( inputData.moduleType ) {
|
|
4643
|
-
case 'mobile-
|
|
4643
|
+
case 'mobile-detection':
|
|
4644
4644
|
case 'uniform-detection':
|
|
4645
4645
|
case 'open-time':
|
|
4646
4646
|
case 'close-time':
|
|
@@ -4672,8 +4672,9 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
4672
4672
|
fileDate: '$fileDate', storeId: '$storeId', zoneName: '$zoneName',
|
|
4673
4673
|
};
|
|
4674
4674
|
break;
|
|
4675
|
+
default:
|
|
4676
|
+
return res.sendError( 'Please give valid module type', 400 );
|
|
4675
4677
|
}
|
|
4676
|
-
|
|
4677
4678
|
const userQuery = [
|
|
4678
4679
|
{
|
|
4679
4680
|
$match: {
|
|
@@ -4869,7 +4870,7 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
4869
4870
|
const bucketCDN = url.traxAuditInput;
|
|
4870
4871
|
if ( folderPath?.length > 0 ) {
|
|
4871
4872
|
switch ( inputData.moduleType ) {
|
|
4872
|
-
case 'mobile-
|
|
4873
|
+
case 'mobile-detection':
|
|
4873
4874
|
case 'uniform-detection':
|
|
4874
4875
|
case 'hygiene':
|
|
4875
4876
|
for ( let i = 0; i < folderPath.length; i++ ) {
|
|
@@ -4921,6 +4922,8 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
4921
4922
|
} );
|
|
4922
4923
|
}
|
|
4923
4924
|
break;
|
|
4925
|
+
default:
|
|
4926
|
+
return res.sendError( 'Please give valid module type', 400 );
|
|
4924
4927
|
}
|
|
4925
4928
|
|
|
4926
4929
|
if ( userDetails.length === 0 ) {
|
|
@@ -4971,6 +4974,8 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
4971
4974
|
moduleType: inputData.moduleType,
|
|
4972
4975
|
};
|
|
4973
4976
|
break;
|
|
4977
|
+
default:
|
|
4978
|
+
return res.sendError( 'Please give valid module type', 400 );
|
|
4974
4979
|
}
|
|
4975
4980
|
|
|
4976
4981
|
const storeRecord = {
|
|
@@ -5284,6 +5289,11 @@ export async function save( req, res ) {
|
|
|
5284
5289
|
'fileDate.keyword': inputData.fileDate,
|
|
5285
5290
|
},
|
|
5286
5291
|
},
|
|
5292
|
+
{
|
|
5293
|
+
'term': {
|
|
5294
|
+
'moduleType.keyword': inputData.moduleType,
|
|
5295
|
+
},
|
|
5296
|
+
},
|
|
5287
5297
|
];
|
|
5288
5298
|
|
|
5289
5299
|
inputData.moduleType === 'hygiene'?
|
|
@@ -5399,7 +5409,7 @@ export async function reTrigger( req, res ) {
|
|
|
5399
5409
|
queueName=getQueueName?.auditConfigs?.traxQueueName?.openClose;
|
|
5400
5410
|
break;
|
|
5401
5411
|
default:
|
|
5402
|
-
return res.sendError( 'Please give valid module type' );
|
|
5412
|
+
return res.sendError( 'Please give valid module type', 400 );
|
|
5403
5413
|
}
|
|
5404
5414
|
if ( !getQueueName || [ null, '', undefined ].includes( queueName ) ) {
|
|
5405
5415
|
return res.sendError( `The queueName ${queueName} does not create`, 400 );
|