tango-app-api-trax 3.7.2-multireff-15 → 3.7.2-multireff-16

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.2-multireff-15",
3
+ "version": "3.7.2-multireff-16",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,8 +27,9 @@
27
27
  "mongodb": "^6.8.0",
28
28
  "nodemon": "^3.1.4",
29
29
  "path": "^0.12.7",
30
- "tango-api-schema": "^2.3.19",
31
- "tango-app-api-middleware": "^3.1.77",
30
+ "sharp": "^0.34.3",
31
+ "tango-api-schema": "^2.2.198",
32
+ "tango-app-api-middleware": "^3.5.2",
32
33
  "url": "^0.11.4",
33
34
  "winston": "^3.13.1",
34
35
  "winston-daily-rotate-file": "^5.0.0"
@@ -2928,7 +2928,7 @@ export async function checklistv1( req, res ) {
2928
2928
 
2929
2929
  const [ checklistResult, taskResult ] = await Promise.allSettled( [
2930
2930
  processedchecklist.aggregate( buildPipeline( [ { checkListType: 'custom' } ], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1 } ) ),
2931
- processedTask.aggregate( taskBuildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1, refTaskId: 1 } ) ),
2931
+ processedTask.aggregate( taskBuildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1 } ) ),
2932
2932
  ] );
2933
2933
 
2934
2934
  const checklistData = checklistResult.status === 'fulfilled' ? checklistResult.value : [];
@@ -1,4 +1,4 @@
1
- import { fileUpload, chunkArray, logger, sendPushNotification, sendTeamsNotification, insertOpenSearchData } from 'tango-app-api-middleware';
1
+ import { compressedFileUpload, chunkArray, logger, sendPushNotification, sendTeamsNotification, insertOpenSearchData } from 'tango-app-api-middleware';
2
2
  import * as checklistService from '../services/checklist.service.js';
3
3
  import * as questionService from '../services/checklistQuestion.service.js';
4
4
  import * as assignedService from '../services/checklistAssign.service.js';
@@ -1095,7 +1095,8 @@ export const uploadImage = async ( req, res ) => {
1095
1095
  ContentType: req.files.file.mimetype,
1096
1096
  body: req.files.file.data,
1097
1097
  };
1098
- imgUrl = await fileUpload( params );
1098
+ // imgUrl = await fileUpload( params );
1099
+ imgUrl = await compressedFileUpload( params );
1099
1100
 
1100
1101
  // let inputData = {
1101
1102
  // Bucket: bucket.sop,