mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-29 05:26:16 +02:00
Updates to use new Library model
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user