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

View File

@ -22,7 +22,8 @@ module.exports = (sequelize) => {
}
}
]
}
},
order: [['playlistMediaItems', 'order', 'ASC']]
})
return playlists.map(p => this.getOldPlaylist(p))
}