mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-16 18:11:00 +02:00
Update Series and Author model to be library specific
This commit is contained in:
@ -74,5 +74,9 @@ module.exports = (sequelize) => {
|
||||
modelName: 'author'
|
||||
})
|
||||
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(Author)
|
||||
Author.belongsTo(library)
|
||||
|
||||
return Author
|
||||
}
|
Reference in New Issue
Block a user