tango-app-api-trax 3.7.4-runai-airtelv2-2 → 3.7.4-runai-airtelv2-4
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.4-runai-airtelv2-
|
|
3
|
+
"version": "3.7.4-runai-airtelv2-4",
|
|
4
4
|
"description": "Trax",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"nodemon": "^3.1.4",
|
|
29
29
|
"path": "^0.12.7",
|
|
30
30
|
"tango-api-schema": "^2.3.20",
|
|
31
|
-
"tango-app-api-middleware": "^3.
|
|
31
|
+
"tango-app-api-middleware": "^3.5.2",
|
|
32
32
|
"url": "^0.11.4",
|
|
33
33
|
"winston": "^3.13.1",
|
|
34
34
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
@@ -1188,7 +1188,8 @@ export const uploadImage = async ( req, res ) => {
|
|
|
1188
1188
|
ContentType: req.files.file.mimetype,
|
|
1189
1189
|
body: req.files.file.data,
|
|
1190
1190
|
};
|
|
1191
|
-
imgUrl = await fileUpload( params );
|
|
1191
|
+
// imgUrl = await fileUpload( params );
|
|
1192
|
+
imgUrl = await compressedFileUpload( params );
|
|
1192
1193
|
|
|
1193
1194
|
// let inputData = {
|
|
1194
1195
|
// Bucket: bucket.sop,
|
|
@@ -3957,7 +3958,7 @@ export const aiChecklist = async ( req, res ) => {
|
|
|
3957
3958
|
checklistDetails = [ ...publishList, ...unpublishList ];
|
|
3958
3959
|
|
|
3959
3960
|
checklistDetails.forEach( ( item ) => {
|
|
3960
|
-
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended' ].includes( item.checkListType ) ) {
|
|
3961
|
+
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking' ].includes( item.checkListType ) ) {
|
|
3961
3962
|
item.storeCount = storeDetails;
|
|
3962
3963
|
}
|
|
3963
3964
|
} );
|