sannimichaelse/Parcel-Delivery

View on GitHub
server/utilities/services/UserService.js

Summary

Maintainability
A
1 hr
Test Coverage

Function validateUserLogin has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static validateUserLogin(email, userpassword) {
    return new Promise((resolve, reject) => {
      this.findUserByEmail(email)
        .then((res) => {
          const { password, id, is_admin } = res.rows[0];
Severity: Minor
Found in server/utilities/services/UserService.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status