hotfix(medusa): emit event with updated shipment
This commit is contained in:
@@ -452,7 +452,7 @@ class OrderService extends BaseService {
|
|||||||
.then(result => {
|
.then(result => {
|
||||||
this.eventBus_.emit(OrderService.Events.SHIPMENT_CREATED, {
|
this.eventBus_.emit(OrderService.Events.SHIPMENT_CREATED, {
|
||||||
order_id: orderId,
|
order_id: orderId,
|
||||||
shipment,
|
shipment: result.fulfillments.find(f => f._id.equals(fulfillmentId)),
|
||||||
})
|
})
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user