mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-04 09:50:42 +02:00
Fix use first accessible library depending on display order, default library id checked on server when authenticating
This commit is contained in:
@@ -381,9 +381,10 @@ class LibraryController {
|
||||
}
|
||||
|
||||
if (hasUpdates) {
|
||||
Logger.info(`[LibraryController] Updated library display orders`)
|
||||
this.db.libraries.sort((a, b) => a.displayOrder - b.displayOrder)
|
||||
Logger.debug(`[LibraryController] Updated library display orders`)
|
||||
} else {
|
||||
Logger.info(`[LibraryController] Library orders were up to date`)
|
||||
Logger.debug(`[LibraryController] Library orders were up to date`)
|
||||
}
|
||||
|
||||
var libraries = this.db.libraries.map(lib => lib.toJSON())
|
||||
|
||||
Reference in New Issue
Block a user