tango-app-api-trax 3.3.1-hotfix-4 → 3.3.1-hotfix-6

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.3.1-hotfix-4",
3
+ "version": "3.3.1-hotfix-6",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "mongodb": "^6.8.0",
27
27
  "nodemon": "^3.1.4",
28
28
  "path": "^0.12.7",
29
- "tango-api-schema": "^2.2.67",
29
+ "tango-api-schema": "^2.2.70",
30
30
  "tango-app-api-middleware": "^3.1.55",
31
31
  "url": "^0.11.4",
32
32
  "winston": "^3.13.1",
@@ -338,7 +338,6 @@ async function insertData( requestData ) {
338
338
  getquestionQuery.push( {
339
339
  $match: {
340
340
  checkListId: element2,
341
- checkFlag: true,
342
341
  isdeleted: false,
343
342
  },
344
343
  } );
@@ -2492,6 +2492,10 @@ export const flagChecklistTableV1 = async ( req, res ) => {
2492
2492
  if ( resultData ) {
2493
2493
  if ( resultData.status_code == '200' ) {
2494
2494
  const exportdata = [];
2495
+ console.log( resultData );
2496
+ if ( reqestData.ChecklistType==='scrum'||reqestData.ChecklistType==='cleaning' ) {
2497
+ reqestData.ChecklistType = 'scrumdetection';
2498
+ }
2495
2499
  resultData[reqestData.ChecklistType + 'Data'].forEach( ( element ) => {
2496
2500
  exportdata.push( {
2497
2501
  'Date': element?.date,
@@ -3808,7 +3808,7 @@ export async function updateAssign( req, res ) {
3808
3808
  let userData = {
3809
3809
  userName: assign.userName,
3810
3810
  email: assign.userEmail,
3811
- mobileNumber: assign?.phone || '',
3811
+ mobileNumber: assign?.userPhone || '',
3812
3812
  clientId: req.body.clientId,
3813
3813
  };
3814
3814
  userDetails = await createUser( userData );