Fix:Libraries out of order #1911

This commit is contained in:
advplyr 2023-07-16 15:43:46 -05:00
parent 541975f038
commit 0829237166

View File

@ -6,7 +6,8 @@ module.exports = (sequelize) => {
class Library extends Model {
static async getAllOldLibraries() {
const libraries = await this.findAll({
include: sequelize.models.libraryFolder
include: sequelize.models.libraryFolder,
order: [['displayOrder', 'ASC']]
})
return libraries.map(lib => this.getOldLibrary(lib))
}