fix: Accept filters in softDelete + fulfillment location clean-up (#7198)
This commit is contained in:
@@ -1634,12 +1634,12 @@ medusaIntegrationTestRunner({
|
||||
},
|
||||
},
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: location.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
@@ -1745,12 +1745,12 @@ medusaIntegrationTestRunner({
|
||||
|
||||
await remoteLink.create([
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: location.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
@@ -1849,12 +1849,12 @@ medusaIntegrationTestRunner({
|
||||
},
|
||||
},
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: location.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
|
||||
@@ -1485,8 +1485,8 @@ medusaIntegrationTestRunner({
|
||||
|
||||
await remoteLinkService.create([
|
||||
{
|
||||
[Modules.FULFILLMENT]: { fulfillment_set_id: fulfillmentSet.id },
|
||||
[Modules.STOCK_LOCATION]: { stock_location_id: stockLocation.id },
|
||||
[Modules.FULFILLMENT]: { fulfillment_set_id: fulfillmentSet.id },
|
||||
},
|
||||
])
|
||||
|
||||
|
||||
@@ -52,18 +52,18 @@ medusaIntegrationTestRunner({
|
||||
|
||||
await remoteLink.create([
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: euWarehouse.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
const linkQuery = remoteQueryObjectFromString({
|
||||
entryPoint: "fulfillment_sets",
|
||||
fields: ["id", "stock_locations.id"],
|
||||
entryPoint: "stock_locations",
|
||||
fields: ["id", "fulfillment_sets.id"],
|
||||
})
|
||||
|
||||
const link = await remoteQuery(linkQuery)
|
||||
@@ -72,10 +72,10 @@ medusaIntegrationTestRunner({
|
||||
expect(link).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
id: fulfillmentSet.id,
|
||||
stock_locations: expect.arrayContaining([
|
||||
id: euWarehouse.id,
|
||||
fulfillment_sets: expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
id: euWarehouse.id,
|
||||
id: fulfillmentSet.id,
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
|
||||
@@ -127,12 +127,12 @@ medusaIntegrationTestRunner({
|
||||
|
||||
await remoteLinkService.create([
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: stockLocation.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user