mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +02:00
Refactor Collection model/controller to not use old Collection object, remove
This commit is contained in:
parent
2464aac2bf
commit
476933a144
6 changed files with 122 additions and 313 deletions
|
@ -16,15 +16,6 @@ class CollectionBook extends Model {
|
|||
this.createdAt
|
||||
}
|
||||
|
||||
static removeByIds(collectionId, bookId) {
|
||||
return this.destroy({
|
||||
where: {
|
||||
bookId,
|
||||
collectionId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
static init(sequelize) {
|
||||
super.init(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue