From 3f2d126dba95ace251cf49f952ffa0ada6729f65 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Sun, 14 Apr 2019 16:20:31 +0000 Subject: [eventmanager] show config name instead of config id in event table - change models/migrations for config association --- server/models/config.js | 1 + 1 file changed, 1 insertion(+) (limited to 'server/models/config.js') diff --git a/server/models/config.js b/server/models/config.js index ae728f6..84f3d1b 100644 --- a/server/models/config.js +++ b/server/models/config.js @@ -24,6 +24,7 @@ module.exports = (sequelize, DataTypes) => { config.belongsToMany(models.entry, { as: 'entries', through: ConfigXEntry, foreignKey: 'configId', otherKey: 'entryId' }) config.hasMany(models.group, { as: 'groups' }) config.hasMany(models.client, { as: 'clients' }) + config.hasMany(models.event, { as: 'events'}) } return config } -- cgit v1.2.3-55-g7522