Correctos parametros
This commit is contained in:
@ -24,7 +24,10 @@ class Job extends Ideal\Service
|
||||
public function add(array $configuration): Model\Job
|
||||
{
|
||||
try {
|
||||
$job = $this->jobRepository->create(compact('configuration'));
|
||||
$data = [
|
||||
'configuration' => json_encode($configuration)
|
||||
];
|
||||
$job = $this->jobRepository->create($data);
|
||||
return $this->process($this->jobRepository->save($job));
|
||||
} catch (PDOException $exception) {
|
||||
throw new Create(__CLASS__, $exception);
|
||||
|
Reference in New Issue
Block a user