tango-app-api-infra 3.1.34-beta.45 → 3.1.34-beta.48
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 +5 -4
- package/src/controllers/clientInfra.controller.js +4 -4
- package/src/controllers/infra.controllers.js +2830 -2813
- package/src/controllers/internalInfra.controller.js +1563 -1558
- package/src/controllers/storeInfra.controlller.js +5 -2
- package/src/controllers/userInfra.controller.js +9 -0
- package/src/services/binaryAudit.service.js +5 -0
- package/src/services/userAudit.service.js +5 -0
- package/src/services/userEmpDetection.service.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-infra",
|
|
3
|
-
"version": "3.1.34-beta.
|
|
3
|
+
"version": "3.1.34-beta.48",
|
|
4
4
|
"description": "infra",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"aws-sdk": "^2.1571.0",
|
|
17
17
|
"cors": "^2.8.5",
|
|
18
|
-
"dayjs": "^1.11.
|
|
18
|
+
"dayjs": "^1.11.13",
|
|
19
|
+
"dayjs-plugin-utc": "^0.1.2",
|
|
19
20
|
"dotenv": "^16.4.5",
|
|
20
21
|
"excel4node": "^1.8.2",
|
|
21
22
|
"express": "^4.18.3",
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
"mongodb": "^6.4.0",
|
|
27
28
|
"nodemon": "^3.1.0",
|
|
28
29
|
"swagger-ui-express": "^5.0.0",
|
|
29
|
-
"tango-api-schema": "^2.
|
|
30
|
-
"tango-app-api-middleware": "^3.1.
|
|
30
|
+
"tango-api-schema": "^2.2.29",
|
|
31
|
+
"tango-app-api-middleware": "^3.1.50",
|
|
31
32
|
"winston": "^3.12.0",
|
|
32
33
|
"winston-daily-rotate-file": "^5.0.0"
|
|
33
34
|
},
|
|
@@ -210,18 +210,18 @@ export async function infraCard( req, res ) {
|
|
|
210
210
|
} );
|
|
211
211
|
response.unshift( {
|
|
212
212
|
name: 'All Issues',
|
|
213
|
-
count: infraStoreCount.length > 0 ? infraStoreCount[0].notidentifiedcount+ticketList.length: 0,
|
|
213
|
+
count: infraStoreCount.length > 0 ? req.body.filter && req.body.filter.length > 0?ticketList.length:( infraStoreCount[0].notidentifiedcount+ticketList.length ): 0,
|
|
214
214
|
} );
|
|
215
215
|
response.push( {
|
|
216
216
|
name: 'Issues Not Identified',
|
|
217
|
-
count: infraStoreCount.length > 0 ? infraStoreCount[0].notidentifiedcount : 0,
|
|
217
|
+
count: infraStoreCount.length > 0 ?( req.body.filter && req.body.filter.length > 0 )?0: infraStoreCount[0].notidentifiedcount : 0,
|
|
218
218
|
} );
|
|
219
219
|
res.sendSuccess( {
|
|
220
220
|
total: storeCount,
|
|
221
221
|
liveStoreCount: infraStoreCount.length > 0 ? storeCount - infraStoreCount[0].infraCount : storeCount,
|
|
222
222
|
infraStoreCount: infraStoreCount.length > 0 ? infraStoreCount[0].notidentifiedcount+ticketList.length : 0,
|
|
223
223
|
identifiedcount: infraStoreCount.length > 0 ? ticketList.length : 0,
|
|
224
|
-
notidentifiedcount: infraStoreCount.length > 0 ? infraStoreCount[0].notidentifiedcount : 0,
|
|
224
|
+
notidentifiedcount: infraStoreCount.length > 0 ?( req.body.filter && req.body.filter.length > 0 )?0: infraStoreCount[0].notidentifiedcount : 0,
|
|
225
225
|
infraIssues: response,
|
|
226
226
|
} );
|
|
227
227
|
} catch ( error ) {
|
|
@@ -586,7 +586,7 @@ export async function infraIssuesTable( req, res ) {
|
|
|
586
586
|
|
|
587
587
|
|
|
588
588
|
if ( req.body.filter && req.body.filter.length > 0 ) {
|
|
589
|
-
req.body.filter.push( '' );
|
|
589
|
+
// req.body.filter.push( '' );
|
|
590
590
|
query.push(
|
|
591
591
|
{
|
|
592
592
|
$match: {
|