security/codeql-dependabot-gitleaks
| 1 | import ProductModule from "@medusajs/medusa/product" |
| 2 | import { defineLink } from "@medusajs/utils" |
| 3 | import BrandModule from "../modules/brand" |
| 4 | |
| 5 | const link = |
| 6 | process.env.ENABLE_INDEX_MODULE === "true" |
| 7 | ? defineLink( |
| 8 | { |
| 9 | linkable: ProductModule.linkable.product.id, |
| 10 | filterable: ["description", "material"], |
| 11 | isList: true, |
| 12 | }, |
| 13 | { |
| 14 | linkable: BrandModule.linkable.brand.id, |
| 15 | filterable: ["id", "name", "status"], |
| 16 | isList: false, |
| 17 | } |
| 18 | ) |
| 19 | : {} |
| 20 | |
| 21 | export default link |