mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +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 {
|
class Library extends Model {
|
||||||
static async getAllOldLibraries() {
|
static async getAllOldLibraries() {
|
||||||
const libraries = await this.findAll({
|
const libraries = await this.findAll({
|
||||||
include: sequelize.models.libraryFolder
|
include: sequelize.models.libraryFolder,
|
||||||
|
order: [['displayOrder', 'ASC']]
|
||||||
})
|
})
|
||||||
return libraries.map(lib => this.getOldLibrary(lib))
|
return libraries.map(lib => this.getOldLibrary(lib))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user