feat(BackupNotification): include database name in BackupFailed notification for better context

This commit is contained in:
Andras Bacsai
2025-11-11 15:27:57 +01:00
parent 684a08bf75
commit 334892d1ff
2 changed files with 4 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ class Emails extends Command
]);
}
$output = 'Because of an error, the backup of the database '.$db->name.' failed.';
$this->mail = (new BackupFailed($backup, $db, $output))->toMail();
$this->mail = (new BackupFailed($backup, $db, $output, $backup->database_name ?? 'unknown'))->toMail();
$this->sendEmail();
break;
case 'backup-success':