tango-app-api-trax 3.7.30 → 3.7.31
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
|
@@ -3746,7 +3746,7 @@ async function insertPCBulkV4( getCLconfig, checklistId, currentdate, updatedche
|
|
|
3746
3746
|
submittedDetails = await processedchecklist.find( query );
|
|
3747
3747
|
}
|
|
3748
3748
|
await Promise.all( allQuestion.map( async ( element4 ) => {
|
|
3749
|
-
let getToken = userDetails.get( element4
|
|
3749
|
+
let getToken = userDetails.get( element4?.userId?.toString() );
|
|
3750
3750
|
if ( getToken && element4?.sendNotification && showEdit ) {
|
|
3751
3751
|
tokenList.push( getToken );
|
|
3752
3752
|
}
|
|
@@ -4511,6 +4511,7 @@ export async function updateAssign( req, res ) {
|
|
|
4511
4511
|
},
|
|
4512
4512
|
];
|
|
4513
4513
|
let assignUserDetails = await userService.aggregate( query );
|
|
4514
|
+
let storeProfileDetails;
|
|
4514
4515
|
if ( req.body.coverage == 'store' ) {
|
|
4515
4516
|
let storeList = req.body.assignedList.map( ( ele ) => ele?.storeId );
|
|
4516
4517
|
storeProfileDetails = await storeService.find( { storeId: { $in: storeList } }, { storeId: 1, city: '$storeProfile.city', country: '$storeProfile.country', state: '$storeProfile.state' } );
|