fix(link-modules): remove duplicate fulfillment set location link (#7441)
Remove the link defined in `location-fulfillment-set` because it's a duplicate of `fulfillment-set-location`.
This commit is contained in:
1 parent
296473d994
commit
98808b6caa
1 file changed
-60
@@ -1,60 +0,0 @@
|
|||||||
import { Modules } from "@medusajs/modules-sdk"
|
|
||||||
import { ModuleJoinerConfig } from "@medusajs/types"
|
|
||||||
import { LINKS } from "@medusajs/utils"
|
|
||||||
|
|
||||||
export const LocationFulfillmentSet: ModuleJoinerConfig = {
|
|
||||||
serviceName: LINKS.LocationFulfillmentSet,
|
|
||||||
isLink: true,
|
|
||||||
databaseConfig: {
|
|
||||||
tableName: "location_fulfillment_set",
|
|
||||||
idPrefix: "locfs",
|
|
||||||
},
|
|
||||||
alias: [
|
|
||||||
{
|
|
||||||
name: ["location_fulfillment_set", "location_fulfillment_sets"],
|
|
||||||
args: {
|
|
||||||
entity: "LinkLocationFulfillmentSet",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
primaryKeys: ["id", "stock_location_id", "fulfillment_set_id"],
|
|
||||||
relationships: [
|
|
||||||
{
|
|
||||||
serviceName: Modules.STOCK_LOCATION,
|
|
||||||
primaryKey: "id",
|
|
||||||
foreignKey: "stock_location_id",
|
|
||||||
alias: "location",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
serviceName: Modules.FULFILLMENT,
|
|
||||||
primaryKey: "id",
|
|
||||||
foreignKey: "fulfillment_set_id",
|
|
||||||
alias: "fulfillment_set",
|
|
||||||
deleteCascade: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
extends: [
|
|
||||||
{
|
|
||||||
serviceName: Modules.STOCK_LOCATION,
|
|
||||||
relationship: {
|
|
||||||
serviceName: LINKS.LocationFulfillmentSet,
|
|
||||||
primaryKey: "stock_location_id",
|
|
||||||
foreignKey: "id",
|
|
||||||
alias: "fulfillment_set_link",
|
|
||||||
isList: true,
|
|
||||||
},
|
|
||||||
fieldAlias: {
|
|
||||||
fulfillment_sets: "fulfillment_set_link.fulfillment_set",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
serviceName: Modules.FULFILLMENT,
|
|
||||||
relationship: {
|
|
||||||
serviceName: LINKS.LocationFulfillmentSet,
|
|
||||||
primaryKey: "fulfillment_set_id",
|
|
||||||
foreignKey: "id",
|
|
||||||
alias: "locations_link",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user