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.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/group.js b/server/models/group.js
index 62a5665..472ecf2 100644
--- a/server/models/group.js
+++ b/server/models/group.js
@@ -18,6 +18,7 @@ module.exports = (sequelize, DataTypes) => {
group.belongsToMany(group, { as: 'parents', through: GroupXGroup, foreignKey: 'childId', otherKey: 'parentId' })
group.belongsToMany(group, { as: 'subgroups', through: GroupXGroup, foreignKey: 'parentId', otherKey: 'childId' })
group.belongsToMany(models.client, { as: 'clients', through: GroupXClient, foreignKey: 'groupId', otherKey: 'clientId' })
+ group.belongsTo(models.config)
}
return group
}