fix(core): update Slack notification formatting to use bold correctly

This commit is contained in:
Andras Bacsai
2025-02-04 12:40:04 +01:00
parent 3da921e2ac
commit df129b83b3
7 changed files with 11 additions and 11 deletions

View File

@@ -79,8 +79,8 @@ class BackupFailed extends CustomEmailNotification
$title = 'Database backup failed';
$description = "Database backup for {$this->name} (db:{$this->database_name}) has FAILED.";
$description .= "\n\n**Frequency:** {$this->frequency}";
$description .= "\n\n**Error Output:**\n{$this->output}";
$description .= "\n\n*Frequency:* {$this->frequency}";
$description .= "\n\n*Error Output:* {$this->output}";
return new SlackMessage(
title: $title,

View File

@@ -77,7 +77,7 @@ class BackupSuccess extends CustomEmailNotification
$title = 'Database backup successful';
$description = "Database backup for {$this->name} (db:{$this->database_name}) was successful.";
$description .= "\n\n**Frequency:** {$this->frequency}";
$description .= "\n\n*Frequency:* {$this->frequency}";
return new SlackMessage(
title: $title,