mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
Update server/managers/BackupManager.js
This commit is contained in:
1 parent
409c5f7b75
commit
43a5296dd7
1 file changed
+1
-1
@@ -83,7 +83,7 @@ class BackupManager {
|
||||
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) => {
|
||||
Logger.error('[BackupManager] Failed to move backup file', path, error)
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user