mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +00:00
Add: calls to failed backup notification
This commit is contained in:
parent
d6b5363ab9
commit
0789f6faf7
1 changed files with 2 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ class BackupManager {
|
|||
// Create backup sqlite file
|
||||
const sqliteBackupPath = await this.backupSqliteDb(newBackup).catch((error) => {
|
||||
Logger.error(`[BackupManager] Failed to backup sqlite db`, error)
|
||||
this.notificationManager.onBackupFailed(error)
|
||||
return false
|
||||
})
|
||||
|
||||
|
|
@ -303,6 +304,7 @@ class BackupManager {
|
|||
// Zip sqlite file, /metadata/items, and /metadata/authors folders
|
||||
const zipResult = await this.zipBackup(sqliteBackupPath, newBackup).catch((error) => {
|
||||
Logger.error(`[BackupManager] Backup Failed ${error}`)
|
||||
this.notificationManager.onBackupFailed(error)
|
||||
return false
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue