Update Mailjet.node.ts

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

View file

@ -193,6 +193,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],
});