DemocracyOS/democracyos

View on GitHub
lib/api-v2/topics/csv.js

Summary

Maintainability
A
1 hr
Test Coverage

Function postCsv has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function postCsv (req, res) {
  const body = req.body.csv
  csv2json(body, function (err, json) {
    if (err) {
      log('get csv: array to csv error', err)
Severity: Minor
Found in lib/api-v2/topics/csv.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status