fix(medusa): Filter statement in partitionItems_ method of Fulfillment Service (#5247)

* Fixed filter statement in partitionItems_ method of Fulfillment Service

* Fix custom batch job activity card

* Added changeset

* Revert unrelated change

---------

Co-authored-by: Pepijn van Vlaanderen <pepijn@webbers.com>
This commit is contained in:
Didier Guyon
2023-10-12 19:55:07 +02:00
committed by GitHub
parent cacc443fc2
commit ec27d02d99
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Fixed filter statement in partitionItems\_ method of Fulfillment Service

View File

@@ -89,7 +89,7 @@ class FulfillmentService extends TransactionBaseService {
const methodProfile = method.shipping_option.profile_id
temp.items = items.filter(({ variant }) => {
variant.product.profile_id === methodProfile
return variant.product.profile_id === methodProfile
})
partitioned.push(temp)
}