tango-app-api-trax 3.7.20 → 3.7.22

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.20",
3
+ "version": "3.7.22",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -169,7 +169,7 @@ export async function startChecklist( req, res ) {
169
169
  currentDateTime = dayjs();
170
170
  }
171
171
  }
172
- if ( getBeforeChecklist[0]?.client_id == '458' && currentDateTime <= dayjs( getBeforeChecklist?.[0]?.scheduleStartTime_iso ) ) {
172
+ if ( getBeforeChecklist[0]?.client_id == '458' && currentDateTime < dayjs( getBeforeChecklist?.[0]?.scheduleStartTime, 'hh:mm A' ) ) {
173
173
  return res.sendError( `Checklist will be start ${getBeforeChecklist?.[0]?.scheduleStartTime}`, 422 );
174
174
  }
175
175
  updateData.checklistStatus = 'inprogress';