tango-app-api-trax 3.3.1-beta-68 → 3.3.1-beta-69
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 +2 -2
- package/src/controllers/teaxFlag.controller.js +6 -5
- package/src/hbs/login-otp.hbs +943 -943
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-trax",
|
|
3
|
-
"version": "3.3.1-beta-
|
|
3
|
+
"version": "3.3.1-beta-69",
|
|
4
4
|
"description": "Trax",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node index.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -1048,10 +1048,11 @@ export const flagTablesV1 = async ( req, res ) => {
|
|
|
1048
1048
|
const data = {
|
|
1049
1049
|
'Checklist Name': element.checkListName,
|
|
1050
1050
|
'Flag Type': element?.checkListType === 'custom' ? 'Question' : 'Detection',
|
|
1051
|
+
'coverage': element.coverage,
|
|
1051
1052
|
'Assigned Stores': element?.assignedStores,
|
|
1052
1053
|
'Flagged Stores': element?.flaggedStores,
|
|
1053
1054
|
'Compliance': element?.complianceRate,
|
|
1054
|
-
'Flagged Count': element?.flagCount,
|
|
1055
|
+
// 'Flagged Count': element?.flagCount,
|
|
1055
1056
|
'Question Flags': element?.customQuestionFlagCount,
|
|
1056
1057
|
'Not Submitted Flags': element?.customTimeFlagCount,
|
|
1057
1058
|
};
|
|
@@ -2445,10 +2446,10 @@ export const flagChecklistTableV1 = async ( req, res ) => {
|
|
|
2445
2446
|
total.forEach( ( element ) => {
|
|
2446
2447
|
exportdata.push( {
|
|
2447
2448
|
'Date': dayjs( element.dateString ).format( 'DD MMM, YYYY' ),
|
|
2448
|
-
'Store Name': element?.storeName,
|
|
2449
|
-
'Store Id': element?.storeId,
|
|
2450
|
-
'
|
|
2451
|
-
'
|
|
2449
|
+
'Store Name': element?.storeName?element?.storeName:'--',
|
|
2450
|
+
'Store Id': element?.storeId?element?.storeId:'--',
|
|
2451
|
+
'User Email': element?.storeSpocEmail,
|
|
2452
|
+
'No. of flags': element?.detections,
|
|
2452
2453
|
} );
|
|
2453
2454
|
} );
|
|
2454
2455
|
return await download( exportdata, res );
|