Fix styling

This commit is contained in:
Thijmen
2024-06-10 20:43:34 +00:00
committed by github-actions[bot]
parent 41fb6a1fc9
commit d86274cc37
429 changed files with 5307 additions and 2831 deletions

View File

@@ -13,8 +13,11 @@ class BackupSuccess extends Notification implements ShouldQueue
use Queueable;
public $backoff = 10;
public $tries = 3;
public string $name;
public string $frequency;
public function __construct(ScheduledDatabaseBackup $backup, public $database, public $database_name)
@@ -37,6 +40,7 @@ class BackupSuccess extends Notification implements ShouldQueue
'database_name' => $this->database_name,
'frequency' => $this->frequency,
]);
return $mail;
}
@@ -44,12 +48,14 @@ class BackupSuccess extends Notification implements ShouldQueue
{
return "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was successful.";
}
public function toTelegram(): array
{
$message = "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was successful.";
ray($message);
return [
"message" => $message,
'message' => $message,
];
}
}