diff --git a/app/Services/PromptService.php b/app/Services/PromptService.php index 5c0b60a17c..2ff79be1f9 100644 --- a/app/Services/PromptService.php +++ b/app/Services/PromptService.php @@ -202,7 +202,7 @@ public function createPrompt($data, $user) { $data['hide_submissions'] = 0; } - $prompt = Prompt::create(Arr::only($data, ['prompt_category_id', 'name', 'summary', 'description', 'parsed_description', 'is_active', 'start_at', 'end_at', 'hide_before_start', 'hide_after_end', 'has_image', 'prefix', 'hide_submissions', 'staff_only'])); + $prompt = Prompt::create(Arr::only($data, ['prompt_category_id', 'name', 'summary', 'description', 'parsed_description', 'is_active', 'start_at', 'end_at', 'hide_before_start', 'hide_after_end', 'has_image', 'prefix', 'hide_submissions', 'staff_only', 'hash'])); if ($image) { $this->handleImage($image, $prompt->imagePath, $prompt->imageFileName); @@ -260,7 +260,7 @@ public function updatePrompt($prompt, $data, $user) { $data['hide_submissions'] = 0; } - $prompt->update(Arr::only($data, ['prompt_category_id', 'name', 'summary', 'description', 'parsed_description', 'is_active', 'start_at', 'end_at', 'hide_before_start', 'hide_after_end', 'has_image', 'prefix', 'hide_submissions', 'staff_only'])); + $prompt->update(Arr::only($data, ['prompt_category_id', 'name', 'summary', 'description', 'parsed_description', 'is_active', 'start_at', 'end_at', 'hide_before_start', 'hide_after_end', 'has_image', 'prefix', 'hide_submissions', 'staff_only', 'hash'])); if ($prompt) { $this->handleImage($image, $prompt->imagePath, $prompt->imageFileName);