Skip to content

Commit

Permalink
feat(product): Make product option value linkable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Nov 15, 2024
1 parent dea86d8 commit a4a4232
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/modules/product/integration-tests/__tests__/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ moduleIntegrationTestRunner<Service>({
"product",
"productVariant",
"productOption",
"productOptionValue",
"productType",
"productImage",
"productTag",
Expand Down Expand Up @@ -101,6 +102,15 @@ moduleIntegrationTestRunner<Service>({
field: "productOption",
},
},
productOptionValue: {
id: {
linkable: "product_option_value_id",
entity: "ProductOptionValue",
primaryKey: "id",
serviceName: "product",
field: "productOptionValue",
},
},
productType: {
id: {
linkable: "product_type_id",
Expand Down
2 changes: 2 additions & 0 deletions packages/modules/product/src/joiner-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ProductCategory,
ProductCollection,
ProductOption,
ProductOptionValue,
ProductTag,
ProductType,
ProductVariant,
Expand All @@ -17,6 +18,7 @@ export const joinerConfig = defineJoinerConfig(Modules.PRODUCT, {
Product,
ProductVariant,
ProductOption,
ProductOptionValue,
ProductType,
ProductImage,
ProductTag,
Expand Down

0 comments on commit a4a4232

Please sign in to comment.