tango-app-api-trax 3.8.22 → 3.8.23

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.8.22",
3
+ "version": "3.8.23",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2247,7 +2247,9 @@ export async function submitChecklist( req, res ) {
2247
2247
  // };
2248
2248
  // await detectionService.create( detectionData );
2249
2249
  if ( requestData.submittype == 'submit' ) {
2250
- updateRecurringFlagTracker( getchecklist[0], requestData.questionAnswers, currentDateTime );
2250
+ if ( checklistDetails?.recurringFlag?.notifyType?.length ) {
2251
+ updateRecurringFlagTracker( getchecklist[0], requestData.questionAnswers, currentDateTime );
2252
+ }
2251
2253
  updateOpenSearch( req.user, requestData );
2252
2254
  let openSearch = JSON.parse( process.env.OPENSEARCH );
2253
2255
  // console.log( 'openSearch', openSearch );