Skip to content

Commit

Permalink
fix(prompts): add 'is_details_visible' to create arr
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored Sep 12, 2024
1 parent b198e70 commit 7fb81d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/PromptService.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function createPrompt($data, $user) {

$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',
'parent_id', 'parent_quantity',
'parent_id', 'parent_quantity', 'is_details_visible',
]));

if ($image) {
Expand Down Expand Up @@ -281,7 +281,7 @@ public function updatePrompt($prompt, $data, $user) {

$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',
'parent_id', 'parent_quantity',
'parent_id', 'parent_quantity', 'is_details_visible',
]));

if ($prompt) {
Expand Down

0 comments on commit 7fb81d6

Please sign in to comment.