Added authGuard function and its implementations
Also refactored small code mistakes.
This commit is contained in:
@@ -6,7 +6,7 @@ require('./spell-model')
|
||||
let Variable = bookshelf.Model.extend({
|
||||
tableName: 'variable',
|
||||
spells() {
|
||||
return this.belongsToMany( 'Spell', 'spell_variable')
|
||||
return this.belongsToMany('Spell', 'spell_variable')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user