18F/analytics-reporter-api

View on GitHub

Showing 1 of 5 total issues

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

const fetchData = (req, res) => {
  const params = Object.assign(req.query, req.params);
  db.query(params)
    .then((result) => {
      const response = result.map((dataPoint) =>
Severity: Minor
Found in src/app.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language