mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-09-13 05:11:47 +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