Skip to content

Commit

Permalink
hotfix: fix send email order(2nd)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Mar 16, 2024
1 parent c36e698 commit b69fc6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/payment/services/payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,14 @@ export class PaymentService {
}
)
// 9. Send email/notification to customer
console.log(JSON.stringify(order))
this.mailerService.sendMail({
to: order.customer.email,
subject: `[Furnique] Đã nhận đơn hàng #${order.orderId}`,
template: 'order-created',
context: {
...order,
orderId: order.orderId,
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 b69fc6c

Please sign in to comment.