tango-app-api-trax 3.3.1-hotfix-5 → 3.3.1-hotfix-7
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
|
@@ -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,
|
|
@@ -1465,8 +1465,12 @@ export const updateConfigurev1 =async ( req, res ) => {
|
|
|
1465
1465
|
if ( !checklistDetails ) {
|
|
1466
1466
|
return res.sendError( 'no data found', 204 );
|
|
1467
1467
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1468
|
+
let currentDate;
|
|
1469
|
+
if ( inputBody.timeZone ) {
|
|
1470
|
+
currentDate = dayjs().tz( inputBody.timeZone ).format();
|
|
1471
|
+
} else {
|
|
1472
|
+
currentDate = dayjs().format( 'HH:mm:ss' );
|
|
1473
|
+
}
|
|
1470
1474
|
currentDate = dayjs.utc( currentDate, 'HH:mm:ss' ).format();
|
|
1471
1475
|
let updatedscheduleEndTimeISO = dayjs.utc( inputBody?.checkListDetails?.scheduleEndTime, 'hh:mm A' ).format( 'HH:mm:ss' );
|
|
1472
1476
|
let newUpdatedDate = dayjs.utc( updatedscheduleEndTimeISO, 'HH:mm:ss' ).format();
|