tango-app-api-task 3.2.1-beta-40 → 3.2.1-beta-42
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
|
@@ -457,7 +457,7 @@ export async function validateUser( req, res ) {
|
|
|
457
457
|
|
|
458
458
|
export const validateUserv1 = async ( req, res ) => {
|
|
459
459
|
try {
|
|
460
|
-
if ( !req.body.assignedUsers
|
|
460
|
+
if ( !req.body.assignedUsers?.length ) {
|
|
461
461
|
return res.sendError( 'Please Enter user Details', 400 );
|
|
462
462
|
}
|
|
463
463
|
|
|
@@ -3845,7 +3845,7 @@ export async function taskAssign( req, res ) {
|
|
|
3845
3845
|
clientId: req.body.clientId,
|
|
3846
3846
|
};
|
|
3847
3847
|
let uploadData = await assignUsers( assignedData );
|
|
3848
|
-
if ( uploadData
|
|
3848
|
+
if ( uploadData?.length ) {
|
|
3849
3849
|
uniqueArr.push( ...uploadData );
|
|
3850
3850
|
}
|
|
3851
3851
|
} ) );
|