summaryrefslogtreecommitdiffstats
path: root/server/models
diff options
context:
space:
mode:
authorJannik Schönartz2018-10-11 02:37:43 +0200
committerJannik Schönartz2018-10-11 02:37:43 +0200
commitd94b8f10d3e9118f9038a508847494354efda115 (patch)
tree2abcf8527173a51a600aa99ee8d9b2f168b19216 /server/models
parent[ipxe] Add wallpaper to the embeded script, clean default script. (diff)
downloadbas-d94b8f10d3e9118f9038a508847494354efda115.tar.gz
bas-d94b8f10d3e9118f9038a508847494354efda115.tar.xz
bas-d94b8f10d3e9118f9038a508847494354efda115.zip
[registration] Add functionality to the set registration state API call
Recursion was needed, to get all the recursive parent groups.
Diffstat (limited to 'server/models')
-rw-r--r--server/models/registrationhook.js2
1 files changed, 1 insertions, 1 deletions
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