mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
redirect if no deployment found
This commit is contained in:
parent
ac0c88f486
commit
22028e23e3
@ -57,7 +57,13 @@ public function deployment()
|
||||
return redirect()->route('dashboard');
|
||||
}
|
||||
$activity = Activity::where('properties->type_uuid', '=', $deployment_uuid)->first();
|
||||
|
||||
if (!$activity) {
|
||||
return redirect()->route('project.application.deployments', [
|
||||
'project_uuid' => $project->uuid,
|
||||
'environment_name' => $environment->name,
|
||||
'application_uuid' => $application->uuid,
|
||||
]);
|
||||
}
|
||||
return view('project.application.deployment', [
|
||||
'application' => $application,
|
||||
'activity' => $activity,
|
||||
|
Loading…
Reference in New Issue
Block a user