holidayextras/jsonapi-server

View on GitHub
lib/postProcess.js

Summary

Maintainability
A
1 hr
Test Coverage

Function _fetchRelatedResources has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

postProcess._fetchRelatedResources = (request, mainResource, callback) => {
  // Fetch the other objects
  let dataItems = mainResource[request.params.relation]

  if (!dataItems) return callback(null, [ null ])
Severity: Minor
Found in lib/postProcess.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status