diff --git a/src/UseCase/Seo/SeoForm.php b/src/UseCase/Seo/SeoForm.php index 88e2eea..508e173 100644 --- a/src/UseCase/Seo/SeoForm.php +++ b/src/UseCase/Seo/SeoForm.php @@ -10,10 +10,10 @@ final class SeoForm extends Model { - public string $h1 = ''; - public string $title = ''; - public string $keywords = ''; - public string $description = ''; + public string|null $h1 = ''; + public string|null $title = ''; + public string|null $keywords = ''; + public string|null $description = ''; public function rules(): array { diff --git a/src/UseCase/Seo/SeoService.php b/src/UseCase/Seo/SeoService.php index f746055..2a8369c 100644 --- a/src/UseCase/Seo/SeoService.php +++ b/src/UseCase/Seo/SeoService.php @@ -26,6 +26,6 @@ public function run(SeoInterface $seo, SeoForm $seoForm, string $class, int $ite $seo->class = $class; $seo->item_id = $itemId; - return $this->persistenceRepository->update($seo); + return $this->persistenceRepository->save($seo); } }