fix: show activity on load

This commit is contained in:
Andras Bacsai
2023-04-12 10:14:57 +02:00
parent b3657dfe2b
commit 135eb7a11e
2 changed files with 4 additions and 5 deletions

View File

@@ -2,10 +2,7 @@
namespace App\Http\Controllers;
use App\Models\Application;
use App\Models\Environment;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Spatie\Activitylog\Models\Activity;
class ProjectController extends Controller
{
@@ -64,8 +61,10 @@ class ProjectController extends Controller
if (!$application) {
return redirect()->route('home');
}
$activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();
return view('project.deployment', [
'activity' => $activity,
'deployment_uuid' => $deployment_uuid,
]);
}