api/models/Notification.js
Function schema
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static schema(app, Sequelize) {
const sEnum = Sequelize.ENUM
const schema = {
title: {
type: Sequelize.STRING,
Function config
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static config(app, Sequelize) {
return {
options: {
hooks: {
afterCreate: (values, options, fn) => {