tango-app-api-task 3.3.1-beta-3 → 3.3.1-beta-4

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-task",
3
- "version": "3.3.1-beta-3",
3
+ "version": "3.3.1-beta-4",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1185,7 +1185,7 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
1185
1185
  if ( teamsList.length ) {
1186
1186
  let teamDetails = await teamsServices.findteams( { _id: { $in: teamsList } } );
1187
1187
  if ( teamDetails.length ) {
1188
- let idList = teamDetails.flatMap( ( item ) => item.users.map( ( ele ) => ele.userId ) );
1188
+ let idList = [ ...teamDetails.flatMap( ( item ) => item.users.map( ( ele ) => ele.userId ) ), ...teamDetails.flatMap( ( item ) => item.Teamlead.map( ( ele ) => ele.userId ) ) ];
1189
1189
  let userIdList = allQuestion.filter( ( qn ) => !qn?.teamName ).map( ( qn ) => qn.assignId.toString() );
1190
1190
  idList = idList.filter( ( id ) => !userIdList.includes( id.toString() ) );
1191
1191
  let getUserDetails = await userService.find( { _id: { $in: idList } } );