color, weigth, locale, config

This commit is contained in:
lesion
2019-06-26 14:44:21 +02:00
parent b093dae3f3
commit 1087723be8
27 changed files with 188 additions and 86 deletions

View File

@@ -10,7 +10,7 @@ module.exports = (sequelize, DataTypes) => {
}
}, {})
notification.associate = function (models) {
notification.belongsToMany(models.event, { through: 'event_notification' })
notification.belongsToMany(models.event, { through: models.event_notification })
// associations can be defined here
}
return notification