From 79a33eb08a36b9540d7fc58f2e1eefb56a1aaf6e Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Tue, 26 Feb 2019 03:28:51 +0000 Subject: [webapp/configurator] add ability to assign configs to groups/clients [server] increase request size limit to 50mb --- server/models/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models') 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 } -- cgit v1.2.3-55-g7522