unicef/magicbox-open-api

View on GitHub
api/controllers/general.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getProperties has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getProperties(request, response) {
  // key was request._key before
  // key is type of data user is querying
  // ex: mobility, population...
  let key = request.swagger.apiPath.split('/')[2]
Severity: Minor
Found in api/controllers/general.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status