tango-app-api-trax 3.3.1-hotfix-6 → 3.3.1-hotfix-8
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 +1 -1
- package/src/controllers/trax.controller.js +6 -3
- package/src/hbs/login-otp.hbs +943 -943
package/package.json
CHANGED
|
@@ -1465,9 +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
|
-
|
|
1470
|
-
|
|
1468
|
+
let currentDate;
|
|
1469
|
+
if ( inputBody.timeZone ) {
|
|
1470
|
+
currentDate = dayjs().tz( inputBody.timeZone ).format();
|
|
1471
|
+
} else {
|
|
1472
|
+
currentDate = dayjs().format();
|
|
1473
|
+
}
|
|
1471
1474
|
let updatedscheduleEndTimeISO = dayjs.utc( inputBody?.checkListDetails?.scheduleEndTime, 'hh:mm A' ).format( 'HH:mm:ss' );
|
|
1472
1475
|
let newUpdatedDate = dayjs.utc( updatedscheduleEndTimeISO, 'HH:mm:ss' ).format();
|
|
1473
1476
|
|