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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/config.js b/server/models/config.js
index aee8892..ae728f6 100644
--- a/server/models/config.js
+++ b/server/models/config.js
@@ -22,8 +22,8 @@ module.exports = (sequelize, DataTypes) => {
keyBind: DataTypes.STRING
}, { timestamps: false, freezeTableName: true })
config.belongsToMany(models.entry, { as: 'entries', through: ConfigXEntry, foreignKey: 'configId', otherKey: 'entryId' })
- config.hasMany(models.group)
- config.hasMany(models.client)
+ config.hasMany(models.group, { as: 'groups' })
+ config.hasMany(models.client, { as: 'clients' })
}
return config
}