tango-app-api-trax 3.3.1-hotfix-1 → 3.3.1-hotfix-3

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.3.1-hotfix-1",
3
+ "version": "3.3.1-hotfix-3",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1466,7 +1466,8 @@ export const updateConfigurev1 =async ( req, res ) => {
1466
1466
  return res.sendError( 'no data found', 204 );
1467
1467
  }
1468
1468
 
1469
- let currentDate = dayjs.utc().format();
1469
+ let currentDate = dayjs().format( 'HH:mm:ss' );
1470
+ currentDate = dayjs.utc( currentDate, 'HH:mm:ss' ).format();
1470
1471
  let updatedscheduleEndTimeISO = dayjs.utc( inputBody?.checkListDetails?.scheduleEndTime, 'hh:mm A' ).format( 'HH:mm:ss' );
1471
1472
  let newUpdatedDate = dayjs.utc( updatedscheduleEndTimeISO, 'HH:mm:ss' ).format();
1472
1473
 
@@ -736,7 +736,7 @@ export const userPerformance = async ( req, res ) => {
736
736
  _id: '$userName',
737
737
  totalChecklist: { $sum: 1 },
738
738
  userEmail: { $last: '$userEmail' },
739
- checkListCount: { $sum: '$_id' },
739
+ checkListCount: { $sum: 1 },
740
740
  timeFlag: { $sum: '$timeFlag' },
741
741
  submittedChecklist: { $sum: { $cond: [ { $eq: [ '$checklistStatus', 'submit' ] }, 1, 0 ] } },
742
742
  checkListType: { $last: '$checkListType' },