docs: fix SendGrid's dynamic_template_data property (#5112)

This commit is contained in:
Shahed Nasser
2023-09-18 15:06:09 +03:00
committed by GitHub
parent 254ae8d07f
commit a161f689b9
8 changed files with 9 additions and 9 deletions

View File

@@ -3989,7 +3989,7 @@ const sendOptions = {
templateId: "d-123....",
from: "ACME <acme@mail.com>",
to: "customer@mail.com",
data: { dynamic: "data" },
dynamic_template_data: { dynamic: "data" },
}
sendgridService.sendEmail(sendOptions)

View File

@@ -158,7 +158,7 @@ class RestockNotificationSubscriber {
templateId: "restock-notification",
from: "hello@medusajs.com",
to: emails,
data: {
dynamic_template_data: {
// any data necessary for your template...
variant,
},