tango-app-api-trax 3.3.1-beta-22 → 3.3.1-beta-24
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
|
@@ -1954,7 +1954,7 @@ export const validateUser = async ( req, res ) => {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
};
|
|
1956
1956
|
|
|
1957
|
-
export const validateUserv1 = async ( req, res
|
|
1957
|
+
export const validateUserv1 = async ( req, res ) => {
|
|
1958
1958
|
try {
|
|
1959
1959
|
if ( !req.body.assignedUsers.length ) {
|
|
1960
1960
|
return res.sendError( 'Please Enter user Details', 400 );
|
|
@@ -2049,8 +2049,7 @@ export const validateUserv1 = async ( req, res, next ) => {
|
|
|
2049
2049
|
if ( userDetails.length || storeDetails.length ) {
|
|
2050
2050
|
return res.sendError( { validate: false, user: userDetails, store: storeDetails }, 400 );
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2053
|
-
next();
|
|
2052
|
+
return res.sendSuccess( { validate: true } );
|
|
2054
2053
|
} catch ( e ) {
|
|
2055
2054
|
logger.error( 'validateUser 2=>', e );
|
|
2056
2055
|
return res.sendError( e, 500 );
|
|
@@ -81,13 +81,14 @@ export const checklistPageValidation = {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
export const uploadUserSchema = joi.object( {
|
|
84
|
-
|
|
84
|
+
checklistId: joi.string().required(),
|
|
85
85
|
assignedUsers: joi.array().required(),
|
|
86
|
-
uploadUser: joi.boolean().required(),
|
|
86
|
+
// uploadUser: joi.boolean().required(),
|
|
87
87
|
type: joi.string().optional().allow( '' ),
|
|
88
88
|
addUser: joi.boolean().optional(),
|
|
89
89
|
delete: joi.boolean().optional(),
|
|
90
90
|
clientId: joi.string().optional(),
|
|
91
|
+
coverage: joi.string().optional(),
|
|
91
92
|
} );
|
|
92
93
|
|
|
93
94
|
export const uploadUserValidation = {
|