mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +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() {
|
||||
const libraries = await this.findAll({
|
||||
attributes: ['id']
|
||||
attributes: ['id', 'displayOrder'],
|
||||
order: [['displayOrder', 'ASC']]
|
||||
})
|
||||
return libraries.map(l => l.id)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user