Skip to content

Commit

Permalink
fix update categories
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 16, 2023
1 parent 45baeae commit b87086c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function update(Project $project, array $attributes)

return match ($key) {
'counties' => $project->counties()->sync($value),
'activity_domains' => $project->categories()->sync($value),
'categories' => $project->categories()->sync($value),
'preview' => $project->addMedia($value)->toMediaCollection('preview'),

default => ($project->status === ProjectStatus::approved && \in_array($key, $project->requiresApproval))
Expand Down

0 comments on commit b87086c

Please sign in to comment.