Skip to content

Commit

Permalink
stylo
Browse files Browse the repository at this point in the history
  • Loading branch information
arfenis committed Sep 17, 2024
1 parent cb2be25 commit 2d708ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Domains/Workflow/Models/Integrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public function getIntegrationStatus(): Status
$active = Status::getDefaultStatusByName(StatusEnum::ACTIVE->value);
$integrations = $this->integrationCompany()->where('companies_id', $company->getId());

if(!$integrations->exists()) {
if( !$integrations->exists()) {
return Status::getDefaultStatusByName(StatusEnum::OFFLINE->value);
}

if ($status = $integrations->whereNot('status_id',$active->getId())->first()) {
if ($status = $integrations->whereNot('status_id', $active->getId())->first()) {
return $status->status;
};

Expand Down

0 comments on commit 2d708ed

Please sign in to comment.