ContainerHQ/arkis-api

View on GitHub
app/middlewares/pagination.js

Summary

Maintainability
A
1 hr
Test Coverage

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

module.exports = function(req, res, next) {
  req.pagination = {
    limit:  parseInt(req.query.limit  || DEFAULT_LIMIT),
    offset: parseInt(req.query.offset || DEFAULT_OFFSET),
    group:  ['id']
Severity: Minor
Found in app/middlewares/pagination.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status