Fix container status handling and notifications

This commit is contained in:
Andras Bacsai
2023-11-22 15:18:37 +01:00
parent 6ccbf911b2
commit 3dd36a2271
5 changed files with 11 additions and 15 deletions

View File

@@ -281,7 +281,7 @@ function send_internal_notification(string $message): void
try {
$baseUrl = config('app.name');
$team = Team::find(0);
$team->notify(new GeneralNotification("👀 {$baseUrl}: " . $message));
$team?->notify(new GeneralNotification("👀 {$baseUrl}: " . $message));
ray("👀 {$baseUrl}: " . $message);
} catch (\Throwable $e) {
ray($e->getMessage());