tango-app-api-trax 3.6.2-bulktask-4 → 3.6.2-bulktask-5
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
|
@@ -1207,3 +1207,25 @@ export async function vehicleCheckInUpdate( req, res ) {
|
|
|
1207
1207
|
return res.sendError( { error: error }, 500 );
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
|
+
export async function getallchecklist( req, res ) {
|
|
1211
|
+
try {
|
|
1212
|
+
let url = JSON.parse( process.env.LAMBDAURL );
|
|
1213
|
+
console.log( url.getallchecklist );
|
|
1214
|
+
|
|
1215
|
+
let resultData = await LamdaServiceCall( url.getallchecklist, req.body );
|
|
1216
|
+
console.log( resultData );
|
|
1217
|
+
if ( resultData ) {
|
|
1218
|
+
if ( resultData.status_code == '200' ) {
|
|
1219
|
+
resultData.message = '';
|
|
1220
|
+
return res.sendSuccess( resultData );
|
|
1221
|
+
} else {
|
|
1222
|
+
return res.sendError( 'No Content', 204 );
|
|
1223
|
+
}
|
|
1224
|
+
} else {
|
|
1225
|
+
return res.sendError( 'No Content', 204 );
|
|
1226
|
+
}
|
|
1227
|
+
} catch ( error ) {
|
|
1228
|
+
logger.error( { error: error, function: 'getallchecklist' } );
|
|
1229
|
+
return res.sendError( { error: error }, 500 );
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { getchecklist, viewchecklist, getMobileUseagelist, storeOpencloselist, getcustomerunattendedlist,
|
|
4
4
|
storesList, checklistDropdown, redoChecklist, redomultiChecklist, approveChecklist,
|
|
5
|
-
approvalstatus, getLogs, headerStoresV2, teamsList, userList, checkNotificationCount, vehicleCheckInUpdate, taskvalidateUserData } from '../controllers/gallery.controller.js';
|
|
5
|
+
approvalstatus, getLogs, headerStoresV2, teamsList, userList, checkNotificationCount, vehicleCheckInUpdate, taskvalidateUserData, getallchecklist } from '../controllers/gallery.controller.js';
|
|
6
6
|
import express from 'express';
|
|
7
7
|
export const galleryRouter = express.Router();
|
|
8
8
|
import { validate, isAllowedSessionHandler, isAllowedClient, getAssinedStore } from 'tango-app-api-middleware';
|
|
@@ -34,4 +34,5 @@ galleryRouter
|
|
|
34
34
|
.post( '/userList', isAllowedSessionHandler, isAllowedClient, userList )
|
|
35
35
|
.post( '/taskvalidateUserData', isAllowedSessionHandler, isAllowedClient, taskvalidateUserData )
|
|
36
36
|
.post( '/checkNotificationCount', isAllowedSessionHandler, getAssinedStore, checkNotificationCount )
|
|
37
|
-
.post( '/vehicleCheckInUpdate', isAllowedSessionHandler, vehicleCheckInUpdate )
|
|
37
|
+
.post( '/vehicleCheckInUpdate', isAllowedSessionHandler, vehicleCheckInUpdate )
|
|
38
|
+
.post( '/getallchecklist', isAllowedSessionHandler, getallchecklist );
|