Fix: book id length & check duplicate ids, Change: library to lazy load book cards

This commit is contained in:
advplyr committed 2021-11-15 20:09:42 -06:00
1 parent ca6f2c01f6
commit 72f9732b67
18 files changed
+466 -86

No files matched your search

+6
View File
@@ -118,6 +118,12 @@ class Server {
await this.backupManager.init()
await this.logManager.init()
// Only fix duplicate ids once on upgrade
if (this.db.previousVersion === '1.0.0') {
Logger.info(`[Server] Running scan for duplicate book IDs`)
await this.scanner.fixDuplicateIds()
}
this.watcher.initWatcher(this.libraries)
this.watcher.on('files', this.filesChanged.bind(this))
}