summaryrefslogtreecommitdiffstats
path: root/server/models/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/config.js')
-rw-r--r--server/models/config.js1
1 files changed, 1 insertions, 0 deletions
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
}