philippebeck/nens

View on GitHub
controller/UserCtrl.js

Summary

Maintainability
A
1 hr
Test Coverage

Function updateUser has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.updateUser = async (req, res, next) => {
  const { USER_NOT_UPDATED, USER_UPDATED } = process.env;
  const ID = parseInt(req.params.id, 10);

  form.parse(req, async (err, fields, files) => {
Severity: Minor
Found in controller/UserCtrl.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status