mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix clean database method and version bump 2.3.5
This commit is contained in:
		
							parent
							
								
									f6baf06164
								
							
						
					
					
						commit
						87d037cb0a
					
				
							
								
								
									
										2
									
								
								client/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								client/package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "audiobookshelf-client",
 | 
			
		||||
  "version": "2.3.4",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "lockfileVersion": 2,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "packages": {
 | 
			
		||||
 | 
			
		||||
@ -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": {
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "audiobookshelf",
 | 
			
		||||
  "version": "2.3.4",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "lockfileVersion": 2,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "packages": {
 | 
			
		||||
 | 
			
		||||
@ -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": {
 | 
			
		||||
 | 
			
		||||
@ -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()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user