tango-app-api-trax 1.0.0-alpha-task.136 → 1.0.0-alpha-task.137

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": "1.0.0-alpha-task.136",
3
+ "version": "1.0.0-alpha-task.137",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -704,6 +704,7 @@ export const update = async ( req, res ) => {
704
704
  sectionId.push( data._id );
705
705
  if ( i == inputBody.sections.length - 1 ) {
706
706
  await questionService.deleteMany( { checkListId: checkListId, client_id: req.body.clientId, _id: { $nin: sectionId } } );
707
+ await assignedService.updateMany( { checkListId: checkListId }, { checkListName: inputBody.checklistName } );
707
708
  return res.sendSuccess( { checklistId: checkListId, msg: 'CheckList Created Successfully' } );
708
709
  }
709
710
  } ).catch( ( e ) => {