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.

feat: enable success messages again

peaklabs-dev2da4e9a274d7
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 04e71c4e34..6b677fa0e5 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -2409,7 +2409,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
if (! $this->only_this_server) {
$this->deploy_to_additional_destinations();
}
- //$this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));
+ $this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));
}
}
diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.php
index ee702202fc..06aec5e495 100644
--- a/app/Jobs/DatabaseBackupJob.php
+++ b/app/Jobs/DatabaseBackupJob.php
@@ -306,7 +306,9 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
if ($this->backup->save_s3) {
$this->upload_to_s3();
}
- //$this->team?->notify(new BackupSuccess($this->backup, $this->database, $database));
+
+ $this->team->notify(new BackupSuccess($this->backup, $this->database, $database));
+
$this->backup_log->update([
'status' => 'success',
'message' => $this->backup_output,
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 6dfb0a4a1f..cc82117890 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -1042,7 +1042,7 @@ $schema://$host {
$this->unreachable_notification_sent = false;
$this->save();
$this->refresh();
- // $this->team->notify(new Reachable($this));
+ $this->team->notify(new Reachable($this));
}
public function sendUnreachableNotification()
@@ -1050,7 +1050,7 @@ $schema://$host {
$this->unreachable_notification_sent = true;
$this->save();
$this->refresh();
- // $this->team->notify(new Unreachable($this));
+ $this->team->notify(new Unreachable($this));
}
public function validateConnection(bool $justCheckingNewKey = false)