Update app/Livewire/Project/Service/Heading.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
9651195318
commit
2424bd408b
1 changed files with 5 additions and 1 deletions
|
|
@ -102,7 +102,11 @@ public function start()
|
||||||
public function forceDeploy()
|
public function forceDeploy()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$activities = Activity::where('properties->type_uuid', $this->service->uuid)->where('properties->status', ProcessStatus::IN_PROGRESS->value)->orWhere('properties->status', ProcessStatus::QUEUED->value)->get();
|
$activities = Activity::where('properties->type_uuid', $this->service->uuid)
|
||||||
|
->where(function ($q) {
|
||||||
|
$q->where('properties->status', ProcessStatus::IN_PROGRESS->value)
|
||||||
|
->orWhere('properties->status', ProcessStatus::QUEUED->value);
|
||||||
|
})->get();
|
||||||
foreach ($activities as $activity) {
|
foreach ($activities as $activity) {
|
||||||
$activity->properties->status = ProcessStatus::ERROR->value;
|
$activity->properties->status = ProcessStatus::ERROR->value;
|
||||||
$activity->save();
|
$activity->save();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue