mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Fix find all playlist endpoint
This commit is contained in:
parent
9785bc02ea
commit
777c59458d
2 changed files with 2 additions and 11 deletions
|
@ -23,15 +23,6 @@ class PlaylistMediaItem extends Model {
|
|||
this.mediaItem
|
||||
}
|
||||
|
||||
static removeByIds(playlistId, mediaItemId) {
|
||||
return this.destroy({
|
||||
where: {
|
||||
playlistId,
|
||||
mediaItemId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
getMediaItem(options) {
|
||||
if (!this.mediaItemType) return Promise.resolve(null)
|
||||
const mixinMethodName = `get${this.sequelize.uppercaseFirst(this.mediaItemType)}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue