fix(xo-server-backup-reports): handle log not found (#3430)
This commit is contained in:
parent
5e363761a2
commit
b98b618be8
@ -153,6 +153,9 @@ class BackupReportsXoPlugin {
|
||||
async _backupNgListener (_1, _2, schedule, runJobId) {
|
||||
const xo = this._xo
|
||||
const log = await xo.getBackupNgLogs(runJobId)
|
||||
if (log === undefined) {
|
||||
throw new Error(`no log found with runId=${JSON.stringify(runJobId)}`)
|
||||
}
|
||||
|
||||
const { reportWhen, mode } = log.data || {}
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user