Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Nov 2, 2024
1 parent 7a1623e commit 7a49681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/LibraryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,11 +873,11 @@ class LibraryItem extends Model {
attributes: ['id', 'mediaType', 'mediaId', 'libraryId'],
include: [
{
model: this.bookModel,
model: this.sequelize.models.book,
attributes: ['id', 'coverPath']
},
{
model: this.podcastModel,
model: this.sequelize.models.podcast,
attributes: ['id', 'coverPath']
}
]
Expand Down

0 comments on commit 7a49681

Please sign in to comment.