Updates to use new Library model

This commit is contained in:
advplyr committed 2024-08-23 16:59:51 -05:00
1 parent 8774e6be71
commit 38edcdca4b
6 files changed
+114 -57

No files matched your search

-5
View File
@@ -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)