18F/analytics-reporter-api

View on GitHub
src/app.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status