mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 01:35:08 +02:00
Updates to use new Library model
This commit is contained in:
parent
8774e6be71
commit
38edcdca4b
6 changed files with 114 additions and 57 deletions
|
@ -384,11 +384,6 @@ class Database {
|
|||
return Promise.all(oldBooks.map((oldBook) => this.models.book.saveFromOld(oldBook)))
|
||||
}
|
||||
|
||||
updateLibrary(oldLibrary) {
|
||||
if (!this.sequelize) return false
|
||||
return this.models.library.updateFromOld(oldLibrary)
|
||||
}
|
||||
|
||||
removeLibrary(libraryId) {
|
||||
if (!this.sequelize) return false
|
||||
return this.models.library.removeById(libraryId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue