Skip to content

Commit

Permalink
Fix match case in ValidMutation rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
v16Studios committed Mar 22, 2024
1 parent f007665 commit 602910b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Rules/ValidMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
{
match (Arr::get($this->data, 'dispatch.call')) {
DispatchCall::FUEL_TANKS->name => $this->validateQuery('fuel-tanks', $value, $fail),
DispatchCall::MARKETPLACE->name => $this->validateQuery('marketplace', $value, $fail),
DispatchCall::MULTI_TOKENS->name => $this->validateQuery('primary', $value, $fail),
};
}
Expand Down

0 comments on commit 602910b

Please sign in to comment.