mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-06 06:56:27 +01:00
Update:Create library endpoint to create using new model, adding additional validation
This commit is contained in:
1 parent
1c0d6e9c67
commit
8774e6be71
4 files changed
+134
-89
No files matched your search
@@ -384,11 +384,6 @@ class Database {
|
||||
return Promise.all(oldBooks.map((oldBook) => this.models.book.saveFromOld(oldBook)))
|
||||
}
|
||||
|
||||
createLibrary(oldLibrary) {
|
||||
if (!this.sequelize) return false
|
||||
return this.models.library.createFromOld(oldLibrary)
|
||||
}
|
||||
|
||||
updateLibrary(oldLibrary) {
|
||||
if (!this.sequelize) return false
|
||||
return this.models.library.updateFromOld(oldLibrary)
|
||||
|
||||
Reference in new issue
Block a user