Skip to content

Commit

Permalink
fix: color/size
Browse files Browse the repository at this point in the history
  • Loading branch information
DemandDevOps committed Mar 11, 2022
1 parent 1fbe572 commit af54d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/queries/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
pipeline: [
{
$group: {
_id: "$product.variants.optionTitle",
_id: "$product.variants.color",
name: {
$first: "$product.variants.optionTitle"
$first: "$product.variants.color"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/queries/sizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
pipeline: [
{
$group: {
_id: "$product.variants.options.optionTitle",
_id: "$product.variants.size",
name: {
$first: "$product.variants.options.optionTitle"
$first: "$product.variants.size"
}
}
},
Expand Down

0 comments on commit af54d9f

Please sign in to comment.