mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-26 16:48:53 +01:00
Update playlist & collection models to use sort order
This commit is contained in:
parent
f425185575
commit
eb5331d34a
@ -10,7 +10,8 @@ module.exports = (sequelize) => {
|
||||
include: {
|
||||
model: sequelize.models.book,
|
||||
include: sequelize.models.libraryItem
|
||||
}
|
||||
},
|
||||
order: [[sequelize.models.book, sequelize.models.collectionBook, 'order', 'ASC']]
|
||||
})
|
||||
return collections.map(c => this.getOldCollection(c))
|
||||
}
|
||||
|
@ -22,7 +22,8 @@ module.exports = (sequelize) => {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
order: [['playlistMediaItems', 'order', 'ASC']]
|
||||
})
|
||||
return playlists.map(p => this.getOldPlaylist(p))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user