Refactor Collection model/controller to not use old Collection object, remove

This commit is contained in:
advplyr 2024-12-30 16:54:48 -06:00
parent 2464aac2bf
commit 476933a144
6 changed files with 122 additions and 313 deletions

View file

@ -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(
{