API/services/user.service.js
Showing 1 of 3 total issues
Function signUser
has 36 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
static async signUser(login) { try { const user = await User.findUserByEmail(login.email); if (user) {
Function createUser
has 32 lines of code (exceeds 30 allowed). Consider refactoring. Wontfix
Wontfix
static async createUser(user) { try { const isUser = await User.findUserByEmail(user.email); if (isUser) {
Function createAStaff
has 32 lines of code (exceeds 30 allowed). Consider refactoring. Invalid
Invalid
static async createAStaff(user) { try { const isStaff = await User.findUserByEmail(user.email); if (isStaff) {