mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-28 14:54:38 +02:00
Update playlist & collection models to use sort order
This commit is contained in:
parent
f425185575
commit
eb5331d34a
2 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,8 @@ module.exports = (sequelize) => {
|
|||
include: {
|
||||
model: sequelize.models.book,
|
||||
include: sequelize.models.libraryItem
|
||||
}
|
||||
},
|
||||
order: [[sequelize.models.book, sequelize.models.collectionBook, 'order', 'ASC']]
|
||||
})
|
||||
return collections.map(c => this.getOldCollection(c))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue