mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-13 17:38:40 +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: {
|
include: {
|
||||||
model: sequelize.models.book,
|
model: sequelize.models.book,
|
||||||
include: sequelize.models.libraryItem
|
include: sequelize.models.libraryItem
|
||||||
}
|
},
|
||||||
|
order: [[sequelize.models.book, sequelize.models.collectionBook, 'order', 'ASC']]
|
||||||
})
|
})
|
||||||
return collections.map(c => this.getOldCollection(c))
|
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))
|
return playlists.map(p => this.getOldPlaylist(p))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user