mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-22 20:04:38 +02:00
Update server/managers/BackupManager.js
This commit is contained in:
parent
409c5f7b75
commit
43a5296dd7
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class BackupManager {
|
||||||
return res.status(500).send('Invalid backup file')
|
return res.status(500).send('Invalid backup file')
|
||||||
}
|
}
|
||||||
|
|
||||||
const tempPath = fileUtils.sanitizeFilename(Path.join(this.BackupPath, backupFile.name))
|
const tempPath = Path.join(this.BackupPath, fileUtils.sanitizeFilename(backupFile.name))
|
||||||
const success = await backupFile.mv(tempPath).then(() => true).catch((error) => {
|
const success = await backupFile.mv(tempPath).then(() => true).catch((error) => {
|
||||||
Logger.error('[BackupManager] Failed to move backup file', path, error)
|
Logger.error('[BackupManager] Failed to move backup file', path, error)
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue