tango-app-api-trax 3.7.13-qid-halfshutter-16 → 3.7.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
|
@@ -3571,6 +3571,9 @@ export async function taskQuestionList( req, res ) {
|
|
|
3571
3571
|
userEmail: { $ifNull: [ '$userEmail', '' ] },
|
|
3572
3572
|
storeName: { $ifNull: [ '$storeName', '' ] },
|
|
3573
3573
|
redoStatus: { $ifNull: [ '$redoStatus', false ] },
|
|
3574
|
+
rawImageUpload: { $ifNull: [ '$rawImageUpload', false ] },
|
|
3575
|
+
rawVideoUpload: { $ifNull: [ '$rawVideoUpload', false ] },
|
|
3576
|
+
videoUploadTimeLimit: { $ifNull: [ '$videoUploadTimeLimit', 0 ] },
|
|
3574
3577
|
},
|
|
3575
3578
|
} );
|
|
3576
3579
|
|
|
@@ -3781,7 +3784,7 @@ export async function uploadAnswerImage( req, res ) {
|
|
|
3781
3784
|
|
|
3782
3785
|
imageUrl = await fileUpload( params );
|
|
3783
3786
|
if ( imageUrl.errors && imageUrl.errors.length ) {
|
|
3784
|
-
return res.sendError( imageUrl.errors[0].message,
|
|
3787
|
+
return res.sendError( imageUrl.errors[0].message, 400 );
|
|
3785
3788
|
}
|
|
3786
3789
|
|
|
3787
3790
|
if ( imageUrl != '' ) {
|
|
@@ -4393,7 +4396,7 @@ export async function chunkUpload( req, res ) {
|
|
|
4393
4396
|
try {
|
|
4394
4397
|
const { chunkIndex, totalChunks } = req.body;
|
|
4395
4398
|
if ( chunkIndex === undefined || !totalChunks || !req.files || !req.files.answerImage ) {
|
|
4396
|
-
return res.
|
|
4399
|
+
return res.sendError( 'Missing required params or file.', 400 );
|
|
4397
4400
|
}
|
|
4398
4401
|
const chunkNum = Number( chunkIndex );
|
|
4399
4402
|
const chunkTotal = Number( totalChunks );
|
|
@@ -3237,13 +3237,15 @@ export const flagTablesV2 = async ( req, res ) => {
|
|
|
3237
3237
|
getChecklistPerformanceData[index].flaggedStores = findCheckList.flagStoreCount;
|
|
3238
3238
|
}
|
|
3239
3239
|
} else {
|
|
3240
|
-
if (
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3240
|
+
if ( getChecklistPerformanceData[index].checkListType !== 'custom' ) {
|
|
3241
|
+
if ( requestData?.filter == 'all' ) {
|
|
3242
|
+
getChecklistPerformanceData[index].runAIFlag = 0;
|
|
3243
|
+
getChecklistPerformanceData[index].flagCount = resultData?.[getChecklistPerformanceData[index]?.checkListType] || 0;
|
|
3244
|
+
getChecklistPerformanceData[index].flaggedStores = resultData?.[`${getChecklistPerformanceData[index]?.checkListType}_flaggedstores`] || 0;
|
|
3245
|
+
} else {
|
|
3246
|
+
getChecklistPerformanceData[index].flagCount = 0;
|
|
3247
|
+
getChecklistPerformanceData[index].flaggedStores = 0;
|
|
3248
|
+
}
|
|
3247
3249
|
}
|
|
3248
3250
|
}
|
|
3249
3251
|
getChecklistPerformanceData[index].complianceRate = ( 100- ( getChecklistPerformanceData[index].flaggedStores / getChecklistPerformanceData[index].assignedStores ) * 100 );
|