mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-03 08:49:40 +00:00
Update:Create library endpoint to create using new model, adding additional validation
This commit is contained in:
parent
1c0d6e9c67
commit
8774e6be71
4 changed files with 134 additions and 89 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue