Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

402 B
Raw Blame
import { defineLink } from "@medusajs/framework/utils"
import PromotionModule from "@medusajs/medusa/promotion"

import PromotionCostModule from "../modules/promotion-cost"

export default defineLink(
  {
    linkable: PromotionModule.linkable.promotion,
    field: "id",
  },
  {
    ...PromotionCostModule.linkable.promotionCost.id,
    primaryKey: "promotion_id",
  },
  {
    readOnly: true,
  }
)