fix(medusa): add line item to order.gift_card_created event
This commit is contained in:
1 parent
30f81d4ccc
commit
c5019ca0d1
1 file changed
+1
@@ -346,6 +346,7 @@ class OrderService extends BaseService {
|
|||||||
.generateGiftCard(i.content.unit_price, region._id)
|
.generateGiftCard(i.content.unit_price, region._id)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
this.eventBus_.emit(OrderService.Events.GIFT_CARD_CREATED, {
|
this.eventBus_.emit(OrderService.Events.GIFT_CARD_CREATED, {
|
||||||
|
line_item: i,
|
||||||
currency_code: region.currency_code,
|
currency_code: region.currency_code,
|
||||||
tax_rate: region.tax_rate,
|
tax_rate: region.tax_rate,
|
||||||
giftcard: result,
|
giftcard: result,
|
||||||
|
|||||||
Reference in new issue
Block a user