mylisabox/lisa-box

View on GitHub
api/models/Notification.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function schema has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static schema(app, Sequelize) {
    const sEnum = Sequelize.ENUM
    const schema = {
      title: {
        type: Sequelize.STRING,
Severity: Major
Found in api/models/Notification.js - About 2 hrs to fix

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

      static config(app, Sequelize) {
        return {
          options: {
            hooks: {
              afterCreate: (values, options, fn) => {
    Severity: Minor
    Found in api/models/Notification.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status