tieme-ndo/backend

View on GitHub
controllers/farmer/deleteFarmer.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const deleteFarmer = async (req, res, next) => {
  try {
    const farmerId = req.params.id;
    const { isAdmin } = req.user;

Severity: Minor
Found in controllers/farmer/deleteFarmer.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    const { models } = require('../../models');
    Severity: Minor
    Found in controllers/farmer/deleteFarmer.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status