marusoft/Auto-Mart

View on GitHub
server/controllers/flagController.js

Summary

Maintainability
A
1 hr
Test Coverage

Function flagPostedAdAsFraud has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async flagPostedAdAsFraud(req, res) {
    const { car_id, reason, description } = req.body;

    const value = Number(car_id);
    const findCarToReport = 'SELECT * FROM cars WHERE id = $1';
Severity: Minor
Found in server/controllers/flagController.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status