Update playlist & collection models to use sort order

This commit is contained in:
advplyr 2023-07-10 16:07:22 -05:00
parent f425185575
commit eb5331d34a
2 changed files with 4 additions and 2 deletions

View file

@ -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))
}