Chinmay Sawant
Results
2
issues of
Chinmay Sawant
Where: if ( [fullName, email, username, password].some((field) => field?.trim() === "") ) { throw new ApiError(400, "All fields are required") } Expected behaviour -> When request body doesn't contain any...
By updating the callback function of validation array to check for undefined field