diff --git a/app/src/Service/Job.php b/app/src/Service/Job.php index 3b612ae..ef65354 100644 --- a/app/src/Service/Job.php +++ b/app/src/Service/Job.php @@ -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);