mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 04:04:06 +01:00
Fix clean database method and version bump 2.3.5
This commit is contained in:
1 parent
f6baf06164
commit
87d037cb0a
5 files changed
+7
-5
No files matched your search
+3
-1
@@ -156,7 +156,7 @@ class Database {
|
||||
await this.buildModels(force)
|
||||
Logger.info(`[Database] Db initialized with models:`, Object.keys(this.sequelize.models).join(', '))
|
||||
|
||||
await this.cleanDatabase()
|
||||
|
||||
await this.loadData()
|
||||
}
|
||||
|
||||
@@ -268,6 +268,8 @@ class Database {
|
||||
await dbMigration.migrationPatch2(this)
|
||||
}
|
||||
|
||||
await this.cleanDatabase()
|
||||
|
||||
// Set if root user has been created
|
||||
this.hasRootUser = await this.models.user.getHasRootUser()
|
||||
|
||||
|
||||
Reference in new issue
Block a user