From d94b8f10d3e9118f9038a508847494354efda115 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Thu, 11 Oct 2018 00:37:43 +0000 Subject: [registration] Add functionality to the set registration state API call Recursion was needed, to get all the recursive parent groups. --- server/models/registrationhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models') diff --git a/server/models/registrationhook.js b/server/models/registrationhook.js index 0b7566d..1e74288 100644 --- a/server/models/registrationhook.js +++ b/server/models/registrationhook.js @@ -18,7 +18,7 @@ module.exports = (sequelize, DataTypes) => { }) registrationhook.associate = function (models) { var RegistrationhookXGroup = sequelize.define('registrationhook_x_group', {}, { timestamps: false, freezeTableName: true }) - registrationhook.belongsToMany(models.group, { as: 'groups', through: RegistrationhookXGroup, foreignKey: 'registraionhookId', otherKey: 'groupId' }) + registrationhook.belongsToMany(models.group, { as: 'groups', through: RegistrationhookXGroup, foreignKey: 'registrationhookId', otherKey: 'groupId' }) } return registrationhook } \ No newline at end of file -- cgit v1.2.3-55-g7522