tango-app-api-trax 3.7.83 → 3.7.85

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.7.83",
3
+ "version": "3.7.85",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1382,7 +1382,7 @@ export async function insertTimeDelayFlags( req, res ) {
1382
1382
  checklistName: store.checkListName?.trim(),
1383
1383
  submittedBy: '--',
1384
1384
  time: '--',
1385
- domain: `${JSON.parse( process.env.URL ).domain}/manage/trax/flags`,
1385
+ domain: `${JSON.parse( process.env.URL ).domain}/manage/trax/flags?date=${dayjs().format( 'YYYY-MM-DD' )}`,
1386
1386
  type: 'delay',
1387
1387
  };
1388
1388
  const fileContent = fs.readFileSync( path.resolve( path.dirname( '' ) ) + '/src/hbs/flag.hbs', 'utf8' );
@@ -229,7 +229,7 @@ export async function startChecklist( req, res ) {
229
229
  },
230
230
  questionAnswers: { $ifNull: [ '$questionAnswers', '' ] },
231
231
  redoStatus: { $ifNull: [ '$redoStatus', '' ] },
232
- export: { $ifNull: [ '$export', '' ] },
232
+ export: { $ifNull: [ '$export', false ] },
233
233
  },
234
234
  } );
235
235
  let getupdatedchecklist = await processedchecklist.aggregate( findQuery );
@@ -3457,7 +3457,7 @@ export async function questionList( req, res ) {
3457
3457
  videoUploadTimeLimit: { $ifNull: [ '$videoUploadTimeLimit', 0 ] },
3458
3458
  taskType: { $ifNull: [ '$planoType', '' ] },
3459
3459
  streamId: { $ifNull: [ '$streamId', '' ] },
3460
- export: { $ifNull: [ '$export', '' ] },
3460
+ export: { $ifNull: [ '$export', false ] },
3461
3461
  },
3462
3462
  } );
3463
3463
 
@@ -291,7 +291,7 @@ export const checklistPerformance = async ( req, res ) => {
291
291
  };
292
292
 
293
293
 
294
- let complianceURL = 'https://h5gwudrwylz65s4vb6h2evwxeq0kkjog.lambda-url.ap-south-1.on.aws/';
294
+ let complianceURL = JSON.parse( process.env.LAMBDAURL ).complianceURL;
295
295
  const complianceData = await LamdaServiceCall( complianceURL, detectionPayload );
296
296
  if ( complianceData?.data?.length && requestData?.sortColumnName == 'questionCompliance' ) {
297
297
  const end = skip + requestData?.limit;