chore(link-modules): keep promotion alias (#12928)
* chore(link-modules): keep promotion alias * chore: change promotion to promotions
This commit is contained in:
@@ -48,6 +48,13 @@ export const OrderPromotion: ModuleJoinerConfig = {
|
||||
path: "promotion_link.promotions",
|
||||
isList: true,
|
||||
},
|
||||
/**
|
||||
* @deprecated use the promotions field alias instead
|
||||
*/
|
||||
promotion: {
|
||||
path: "promotion_link.promotions",
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderPromotion,
|
||||
@@ -57,5 +64,15 @@ export const OrderPromotion: ModuleJoinerConfig = {
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
serviceName: Modules.PROMOTION,
|
||||
entity: "Promotion",
|
||||
relationship: {
|
||||
serviceName: LINKS.OrderPromotion,
|
||||
primaryKey: "promotion_id",
|
||||
foreignKey: "id",
|
||||
alias: "order_link",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user