mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix getting default library id for user
This commit is contained in:
parent
91b6c4412d
commit
83d0db0607
@ -145,7 +145,8 @@ module.exports = (sequelize) => {
|
|||||||
*/
|
*/
|
||||||
static async getAllLibraryIds() {
|
static async getAllLibraryIds() {
|
||||||
const libraries = await this.findAll({
|
const libraries = await this.findAll({
|
||||||
attributes: ['id']
|
attributes: ['id', 'displayOrder'],
|
||||||
|
order: [['displayOrder', 'ASC']]
|
||||||
})
|
})
|
||||||
return libraries.map(l => l.id)
|
return libraries.map(l => l.id)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user