Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: disable unreachable/revived notifications for now

Andras Bacsaid9d0837024c3
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 2f4c290809..39c9ae626a 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -525,7 +525,7 @@ $schema://$host {
// 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 @@ $schema://$host {
'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];