mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-12 05:24:25 +02:00
Update libraryItem model to include libraryId
This commit is contained in:
@@ -33,7 +33,10 @@ module.exports = (sequelize) => {
|
||||
modelName: 'libraryItem'
|
||||
})
|
||||
|
||||
const { libraryFolder, book, podcast } = sequelize.models
|
||||
const { library, libraryFolder, book, podcast } = sequelize.models
|
||||
library.hasMany(LibraryItem)
|
||||
LibraryItem.belongsTo(library)
|
||||
|
||||
libraryFolder.hasMany(LibraryItem)
|
||||
LibraryItem.belongsTo(libraryFolder)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user