Skip to content

Commit

Permalink
Fix clean database method and version bump 2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Sep 8, 2023
1 parent f6baf06 commit 87d037c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "audiobookshelf-client",
"version": "2.3.4",
"version": "2.3.5",
"description": "Self-hosted audiobook and podcast client",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "audiobookshelf",
"version": "2.3.4",
"version": "2.3.5",
"description": "Self-hosted audiobook and podcast server",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion server/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 87d037c

Please sign in to comment.