fix: disable unreachable/revived notifications for now

This commit is contained in:
Andras Bacsai 2024-05-23 11:32:45 +02:00
parent 086138fbd9
commit d9d0837024

View File

@ -525,7 +525,7 @@ public function isServerReady(int $tries = 3)
// Reached max number of retries
if ($this->unreachable_notification_sent === false) {
ray('Server unreachable, sending notification...');
$this->team?->notify(new Unreachable($this));
// $this->team?->notify(new Unreachable($this));
$this->update(['unreachable_notification_sent' => true]);
}
if ($this->settings->is_reachable === true) {
@ -825,7 +825,7 @@ public function validateConnection()
'unreachable_count' => 0,
]);
if (data_get($server, 'unreachable_notification_sent') === true) {
$server->team?->notify(new Revived($server));
// $server->team?->notify(new Revived($server));
$server->update(['unreachable_notification_sent' => false]);
}
return ['uptime' => true, 'error' => null];