From a3a5b58cfb37a38bafef8d971c1439ec237be301 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 13 May 2025 20:19:03 -0400 Subject: [PATCH] Correctos parametros --- app/src/Service/Job.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);