Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/Domain/UpdateJob.php
Show All 9 Lines | class UpdateJob extends DomainJob | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$domain = $this->getDomain(); | $domain = $this->getDomain(); | ||||
if (!$domain) { | |||||
return; | |||||
} | |||||
if (!$domain->isLdapReady()) { | if (!$domain->isLdapReady()) { | ||||
$this->delete(); | $this->delete(); | ||||
return; | return; | ||||
} | } | ||||
\App\Backends\LDAP::updateDomain($domain); | \App\Backends\LDAP::updateDomain($domain); | ||||
} | } | ||||
} | } |