mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Fix:Libraries out of order #1911
This commit is contained in:
parent
541975f038
commit
0829237166
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue