mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 02:22:09 +01:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
@@ -43,7 +43,8 @@ class LibraryController {
|
||||
}
|
||||
|
||||
const library = new Library()
|
||||
newLibraryPayload.displayOrder = Database.libraries.length + 1
|
||||
|
||||
newLibraryPayload.displayOrder = Database.libraries.map(li => li.displayOrder).sort((a, b) => a - b).pop() + 1
|
||||
library.setData(newLibraryPayload)
|
||||
await Database.createLibrary(library)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user