mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 06:26:26 +01:00
This commit is contained in:
1 parent
f752c19418
commit
e80ec10e8a
32 files changed
+954
-74
No files matched your search
@@ -70,6 +70,14 @@ class Db {
|
||||
return defaultLibrary
|
||||
}
|
||||
|
||||
reinit() {
|
||||
this.audiobooksDb = new njodb.Database(this.AudiobooksPath)
|
||||
this.usersDb = new njodb.Database(this.UsersPath)
|
||||
this.librariesDb = new njodb.Database(this.LibrariesPath, { datastores: 2 })
|
||||
this.settingsDb = new njodb.Database(this.SettingsPath, { datastores: 2 })
|
||||
return this.init()
|
||||
}
|
||||
|
||||
async init() {
|
||||
await this.load()
|
||||
|
||||
|
||||
Reference in new issue
Block a user