src/routes/authentication/user_registration.router.ts
Function userSignUp
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
userSignUp(): express.Router{
this.router.post('/registerUser', async (req, res) => {
const userData = req.body as User;
UserModel.findOne({
phone_number: userData.phone_number