security/codeql-dependabot-gitleaks
| 1 | import { defineLink } from "@medusajs/framework/utils"; |
| 2 | import LoyaltyModule from "../modules/loyalty"; |
| 3 | |
| 4 | defineLink( |
| 5 | { |
| 6 | linkable: LoyaltyModule.linkable.giftCard, |
| 7 | field: "line_item_id", |
| 8 | }, |
| 9 | { |
| 10 | serviceName: "order", |
| 11 | entity: "OrderLineItem", |
| 12 | alias: "line_item", |
| 13 | field: "id", |
| 14 | linkable: "OrderLineItem", |
| 15 | primaryKey: "id", |
| 16 | }, |
| 17 | { readOnly: true, isList: false } |
| 18 | ); |