Skip to content

Commit

Permalink
hotfix: fix send email order
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Mar 16, 2024
1 parent bfdc2e0 commit c36e698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/payment/services/payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export class PaymentService {
subject: `[Furnique] Đã nhận đơn hàng #${order.orderId}`,
template: 'order-created',
context: {
...order,
customer: order.customer,
items: order.items.map((item) => {
const variant = item.product.variants.find((variant) => variant.sku === item.sku)
Expand Down
1 change: 1 addition & 0 deletions src/task/services/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export class TaskService {
subject: `[Furnique] Đơn hàng #${order.orderId} đã được giao thành công`,
template: 'order-completed',
context: {
...order,
customer: order.customer,
items: order.items.map((item) => {
const variant = item.product.variants.find((variant) => variant.sku === item.sku)
Expand Down

0 comments on commit c36e698

Please sign in to comment.