Skip to content

Commit

Permalink
Merge pull request #859 from bakaphp/feat-variant-chanel-search
Browse files Browse the repository at this point in the history
refact: variant channel filter
  • Loading branch information
kaioken authored Jan 29, 2024
2 parents e5d8c1e + 5bf8b9c commit 3224089
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ public function allVariantsPublishedInChannelFilterByAttributes(
$channelUuid = $args['id'];
$attributes = $args['attributes'] ?? [];

if (empty($attributes)) {
// throw new ValidationException('Attributes as array is required');
}

if (isset($attributes['price']) && ! is_array($attributes['price'])) {
throw new ValidationException('Price must be an array');
}
Expand Down
2 changes: 1 addition & 1 deletion graphql/schemas/Inventory/variantChannel.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extend type Query {

channelVariantsFilterByAttributes(
id: ID!
attributes: Mixed!
attributes: Mixed
where: _ @whereConditions(columns: ["slug", "uuid", "name", "sku"])
orderBy: _
@orderBy(
Expand Down

0 comments on commit 3224089

Please sign in to comment.