mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 08:14:40 +02:00
Update Series and Author model to be library specific
This commit is contained in:
parent
1d13d0a553
commit
0ac63b2678
10 changed files with 119 additions and 61 deletions
|
@ -74,5 +74,9 @@ module.exports = (sequelize) => {
|
|||
modelName: 'author'
|
||||
})
|
||||
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(Author)
|
||||
Author.belongsTo(library)
|
||||
|
||||
return Author
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue