mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix:Libraries out of order #1911
This commit is contained in:
parent
541975f038
commit
0829237166
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user