tango-app-api-trax 3.3.1-beta-75 → 3.3.1-beta-77
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
|
@@ -1802,10 +1802,10 @@ export async function submitChecklist( req, res ) {
|
|
|
1802
1802
|
client_id: req.user.clientId,
|
|
1803
1803
|
redoStatus: requestData?.redoStatus ? true : false,
|
|
1804
1804
|
userEmail: getchecklist[0].userEmail || '',
|
|
1805
|
-
userName: getchecklist[0].userName
|
|
1805
|
+
userName: getchecklist[0].userName || '',
|
|
1806
1806
|
coverage: getchecklist[0].coverage || '',
|
|
1807
1807
|
};
|
|
1808
|
-
|
|
1808
|
+
console.log( 'logInsertData=>', logInsertData );
|
|
1809
1809
|
await checklistLogs.create( logInsertData );
|
|
1810
1810
|
// let time = dayjs().format( 'HH:mm:ss' );
|
|
1811
1811
|
// let [ hours, minutes ] = time.split( ':' ).map( Number );
|
|
@@ -3026,7 +3026,7 @@ async function insertPCBulkV4( getCLconfig, checklistId, currentdate, updatedche
|
|
|
3026
3026
|
if ( teamsList.length ) {
|
|
3027
3027
|
let teamDetails = await teamsServices.findteams( { _id: { $in: teamsList } } );
|
|
3028
3028
|
if ( teamDetails.length ) {
|
|
3029
|
-
let idList = teamDetails.flatMap( ( item ) => item.users.map( ( ele ) => ele.userId ) );
|
|
3029
|
+
let idList = [ ...teamDetails.flatMap( ( item ) => item.users.map( ( ele ) => ele.userId ) ), ...teamDetails.flatMap( ( item ) => item.Teamlead.map( ( ele ) => ele.userId ) ) ];
|
|
3030
3030
|
let userIdList = allQuestion.filter( ( qn ) => !qn?.teamName ).map( ( qn ) => qn.assignId.toString() );
|
|
3031
3031
|
idList = idList.filter( ( id ) => !userIdList.includes( id.toString() ) );
|
|
3032
3032
|
let getUserDetails = await userService.find( { _id: { $in: idList } } );
|
|
@@ -3330,6 +3330,7 @@ async function insertPCBulkV4( getCLconfig, checklistId, currentdate, updatedche
|
|
|
3330
3330
|
date_iso: insertdata.date_iso,
|
|
3331
3331
|
client_id: insertdata.client_id,
|
|
3332
3332
|
checkListId: updatedchecklist._id,
|
|
3333
|
+
checklistStatus: 'inprogress',
|
|
3333
3334
|
}, { userId: 1, store_id: 1 } );
|
|
3334
3335
|
|
|
3335
3336
|
if ( inprogressData.length ) {
|