Refactor ApplicationDeploymentJob to conditionally notify team on DeploymentSuccess

This commit is contained in:
Andras Bacsai 2024-05-16 11:25:58 +02:00
parent 2b74ca2746
commit fbf64f8037

View File

@ -1965,7 +1965,10 @@ private function next(string $status)
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));
if (!isCloud()) {
// TODO: turn off until we have a better solution
$this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));
}
}
}