feat: enable success messages again

This commit is contained in:
peaklabs-dev
2024-12-09 12:08:27 +01:00
parent 5515f07f14
commit 2da4e9a274
3 changed files with 6 additions and 4 deletions

View File

@@ -2409,7 +2409,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
if (! $this->only_this_server) { if (! $this->only_this_server) {
$this->deploy_to_additional_destinations(); $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));
} }
} }

View File

@@ -306,7 +306,9 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
if ($this->backup->save_s3) { if ($this->backup->save_s3) {
$this->upload_to_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([ $this->backup_log->update([
'status' => 'success', 'status' => 'success',
'message' => $this->backup_output, 'message' => $this->backup_output,

View File

@@ -1042,7 +1042,7 @@ $schema://$host {
$this->unreachable_notification_sent = false; $this->unreachable_notification_sent = false;
$this->save(); $this->save();
$this->refresh(); $this->refresh();
// $this->team->notify(new Reachable($this)); $this->team->notify(new Reachable($this));
} }
public function sendUnreachableNotification() public function sendUnreachableNotification()
@@ -1050,7 +1050,7 @@ $schema://$host {
$this->unreachable_notification_sent = true; $this->unreachable_notification_sent = true;
$this->save(); $this->save();
$this->refresh(); $this->refresh();
// $this->team->notify(new Unreachable($this)); $this->team->notify(new Unreachable($this));
} }
public function validateConnection(bool $justCheckingNewKey = false) public function validateConnection(bool $justCheckingNewKey = false)