Fix getting default library id for user

This commit is contained in:
advplyr 2023-08-05 16:37:26 -05:00
parent 91b6c4412d
commit 83d0db0607

View File

@ -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)
}