workaround for null bytes
This commit is contained in:
parent
3dedf5548f
commit
25410cb31a
1 changed files with 11 additions and 5 deletions
|
|
@ -62,11 +62,17 @@ public function render()
|
||||||
|
|
||||||
public function checkDeployments()
|
public function checkDeployments()
|
||||||
{
|
{
|
||||||
$activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
|
try {
|
||||||
$status = data_get($activity, 'properties.status');
|
// TODO: This is a temporary solution. We need to refactor this.
|
||||||
if ($status === 'queued' || $status === 'in_progress') {
|
// We need to delete null bytes somehow.
|
||||||
$this->isDeploymentProgress = true;
|
$activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
|
||||||
} else {
|
$status = data_get($activity, 'properties.status');
|
||||||
|
if ($status === 'queued' || $status === 'in_progress') {
|
||||||
|
$this->isDeploymentProgress = true;
|
||||||
|
} else {
|
||||||
|
$this->isDeploymentProgress = false;
|
||||||
|
}
|
||||||
|
} catch (\Throwable $e) {
|
||||||
$this->isDeploymentProgress = false;
|
$this->isDeploymentProgress = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue