Update Mailjet.node.ts

This commit is contained in:
Maxime Pauvert 2024-11-13 11:37:34 +01:00 committed by GitHub
parent eecd511bd4
commit f27ff9f461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,6 +288,12 @@ export class Mailjet implements INodeType {
if (additionalFields.priority) {
body.Priority = additionalFields.priority as number;
}
if (additionalFields.customCampaign) {
body.CustomCampaign = additionalFields.customCampaign as string;
}
if (additionalFields.deduplicateCampaign) {
body.DeduplicateCampaign = additionalFields.deduplicateCampaign as boolean;
}
responseData = await mailjetApiRequest.call(this, 'POST', '/v3.1/send', {
Messages: [body],
});