mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix SendGrid dynamic field generation (#1631)
This commit is contained in:
@@ -361,10 +361,9 @@ export class SendGrid implements INodeType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (fields) {
|
if (fields) {
|
||||||
|
body.personalizations[0].dynamic_template_data = {}
|
||||||
fields.forEach(field => {
|
fields.forEach(field => {
|
||||||
body.personalizations[0].dynamic_template_data = {
|
body.personalizations[0].dynamic_template_data![field.key] = field.value;
|
||||||
[field.key]: field.value,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user