Merge branch 'patricio-wip-11' into patricio-wip-11-merger
# Conflicts: # app/Http/Livewire/DeployApplication.php # app/Jobs/ContainerStatusJob.php # bootstrap/helpers.php
This commit is contained in:
@@ -93,7 +93,10 @@ class ProjectController extends Controller
|
||||
if (!$application) {
|
||||
return redirect()->route('dashboard');
|
||||
}
|
||||
$activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();
|
||||
$activity = Activity::query()
|
||||
->where('properties->type', '=', 'deployment')
|
||||
->where('properties->uuid', '=', $deployment_uuid)
|
||||
->first();
|
||||
|
||||
return view('project.application.deployment', [
|
||||
'application' => $application,
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Livewire\Project\Application;
|
||||
|
||||
use App\Enums\ActivityTypes;
|
||||
use Livewire\Component;
|
||||
use Spatie\Activitylog\Models\Activity;
|
||||
|
||||
@@ -14,7 +15,9 @@ class PollDeployment extends Component
|
||||
public function polling()
|
||||
{
|
||||
if ( is_null($this->activity) && isset($this->deployment_uuid)) {
|
||||
$this->activity = Activity::where('properties->deployment_uuid', '=', $this->deployment_uuid)
|
||||
$this->activity = Activity::query()
|
||||
->where('properties->type', '=', ActivityTypes::DEPLOYMENT->value)
|
||||
->where('properties->type_uuid', '=', $this->deployment_uuid)
|
||||
->first();
|
||||
} else {
|
||||
$this->activity?->refresh();
|
||||
|
||||
Reference in New Issue
Block a user