Skip to content

Commit

Permalink
fix: disable unreachable/revived notifications for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 23, 2024
1 parent 086138f commit d9d0837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit d9d0837

Please sign in to comment.