tango-app-api-trax 3.5.0-alpha-7 → 3.5.0-alpha-9

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.5.0-alpha-7",
3
+ "version": "3.5.0-alpha-9",
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.116",
29
+ "tango-api-schema": "^2.2.119",
30
30
  "tango-app-api-middleware": "^3.1.72",
31
31
  "url": "^0.11.4",
32
32
  "winston": "^3.13.1",
@@ -286,6 +286,7 @@ export async function PCLconfigCreation( req, res ) {
286
286
  insertdata.scheduleRepeatedType = getCLconfig.scheduleRepeatedType;
287
287
  insertdata.allowedMultiSubmit = getCLconfig.allowedMultiSubmit;
288
288
  insertdata.rawImageUpload = getCLconfig.rawImageUpload || false;
289
+ insertdata.rawVideoUpload = getCLconfig.rawVideoUpload || false;
289
290
  let collectSections = [];
290
291
  let sectionQuery = [];
291
292
  sectionQuery.push( {
@@ -562,6 +563,7 @@ export async function PCLconfigCreation( req, res ) {
562
563
  // element4.isPlano = getCLconfig?.isPlano;
563
564
  // }
564
565
  element4.rawImageUpload = getCLconfig?.rawImageUpload || false;
566
+ element4.rawVideoUpload = getCLconfig?.rawVideoUpload || false;
565
567
  }
566
568
  if ( userIdList.length ) {
567
569
  allQuestion = allQuestion.filter( ( item ) => typeof item._id == 'undefined' );
@@ -852,6 +854,7 @@ async function insertData( requestData ) {
852
854
  insertdata.scheduleRepeatedType = getCLconfig.scheduleRepeatedType;
853
855
  insertdata.allowedMultiSubmit = getCLconfig.allowedMultiSubmit;
854
856
  insertdata.rawImageUpload = getCLconfig.rawImageUpload || false;
857
+ insertdata.rawVideoUpload = getCLconfig.rawVideoUpload || false;
855
858
  let collectSections = [];
856
859
  let sectionQuery = [];
857
860
  sectionQuery.push( {
@@ -1128,6 +1131,7 @@ async function insertData( requestData ) {
1128
1131
  // element4.isPlano = getCLconfig?.isPlano;
1129
1132
  // }
1130
1133
  element4.rawImageUpload = getCLconfig?.rawImageUpload || false;
1134
+ element4.rawVideoUpload = getCLconfig?.rawVideoUpload || false;
1131
1135
  }
1132
1136
  if ( userIdList.length ) {
1133
1137
  allQuestion = allQuestion.filter( ( item ) => typeof item._id == 'undefined' );
@@ -2753,8 +2753,8 @@ export async function checklistv1( req, res ) {
2753
2753
  };
2754
2754
 
2755
2755
  const [ checklistResult, taskResult ] = await Promise.allSettled( [
2756
- processedchecklist.aggregate( buildPipeline( [ { checkListType: 'custom' } ], { isPlano: 1, planoId: 1, planoType: 1 } ) ),
2757
- processedTask.aggregate( buildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1 } ) ),
2756
+ processedchecklist.aggregate( buildPipeline( [ { checkListType: 'custom' } ], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1 } ) ),
2757
+ processedTask.aggregate( buildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1 } ) ),
2758
2758
  ] );
2759
2759
 
2760
2760
  const checklistData = checklistResult.status === 'fulfilled' ? checklistResult.value : [];