Updates
This commit is contained in:
@ -38,7 +38,7 @@ class Job extends Ideal\Service
|
||||
public function getPending(): array
|
||||
{
|
||||
try {
|
||||
return array_merge([$this, 'process'],$this->jobRepository->fetchPending());
|
||||
return array_map([$this, 'process'],$this->jobRepository->fetchPending());
|
||||
} catch (EmptyResult $exception) {
|
||||
throw new Read(__CLASS__, $exception);
|
||||
}
|
||||
|
Reference in New Issue
Block a user