mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-18 01:44:33 +02:00
Fix discover home page shelf query, add indexes for libraryItems and mediaProgresses table
This commit is contained in:
parent
33e04d0cbb
commit
8c9fc3ddb5
4 changed files with 56 additions and 19 deletions
|
@ -90,7 +90,12 @@ module.exports = (sequelize) => {
|
|||
extraData: DataTypes.JSON
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'mediaProgress'
|
||||
modelName: 'mediaProgress',
|
||||
indexes: [
|
||||
{
|
||||
fields: ['updatedAt']
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
const { book, podcastEpisode, user } = sequelize.models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue