summaryrefslogtreecommitdiffstats
path: root/server/models/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/group.js')
-rw-r--r--server/models/group.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/group.js b/server/models/group.js
index 0582970..16fd2f1 100644
--- a/server/models/group.js
+++ b/server/models/group.js
@@ -20,7 +20,7 @@ module.exports = (sequelize, DataTypes) => {
group.belongsToMany(group, { as: 'subgroups', through: GroupXGroup, foreignKey: 'parentId', otherKey: 'childId' })
group.belongsToMany(models.client, { as: 'clients', through: GroupXClient, foreignKey: 'groupId', otherKey: 'clientId' })
group.belongsToMany(models.event, { as: 'events', through: GroupXEvent, foreignKey: 'groupId', otherKey: 'eventId' })
- group.belongsTo(models.config)
+ group.belongsTo(models.config, { as: 'config' })
group.hasMany(models.iprange, { as: 'ipranges' })
}
return group