jsperf/jsperf.com

View on GitHub
server/repositories/pages.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function register has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.register = function (server, options, next) {
  const db = server.plugins.db;

  server.expose('create', function (payload) {
    return db.genericQuery('INSERT INTO ?? SET ?', [table, payload]).then((result) => result.insertId);
Severity: Major
Found in server/repositories/pages.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status