mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 12:54:31 +02:00
Fix some packaging and dependency issues
This commit is contained in:
parent
3f93b93d9e
commit
b3ce300d32
3 changed files with 10 additions and 4 deletions
|
@ -92,13 +92,13 @@ class MigrationManager {
|
|||
try {
|
||||
await this.copyMigrationsToConfigDir()
|
||||
} catch (error) {
|
||||
throw new Error('Failed to copy migrations to the config directory.', error)
|
||||
throw new Error('Failed to copy migrations to the config directory.', { cause: error })
|
||||
}
|
||||
|
||||
try {
|
||||
await this.updateMaxVersion(serverVersion)
|
||||
} catch (error) {
|
||||
throw new Error('Failed to update max version in the database.', error)
|
||||
throw new Error('Failed to update max version in the database.', { cause: error })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -156,6 +156,8 @@ class MigrationManager {
|
|||
|
||||
await fs.ensureDir(this.migrationsDir) // Ensure the target directory exists
|
||||
|
||||
if (!(await fs.pathExists(migrationsSourceDir))) return
|
||||
|
||||
const files = await fs.readdir(migrationsSourceDir)
|
||||
await Promise.all(
|
||||
files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue