diff --git a/website/api/controllers/webhooks/receive-from-clay.js b/website/api/controllers/webhooks/receive-from-clay.js index fe789977ac..0f42f8b8fb 100644 --- a/website/api/controllers/webhooks/receive-from-clay.js +++ b/website/api/controllers/webhooks/receive-from-clay.js @@ -24,7 +24,9 @@ module.exports = { }, linkedinUrl: { type: 'string', - required: true, + }, + emailAddress: { + type: 'string', }, contactSource: { type: 'string', @@ -90,7 +92,7 @@ module.exports = { }, - fn: async function ({webhookSecret, firstName, lastName, linkedinUrl, contactSource, jobTitle, intentSignal, historicalContent, historicalContentUrl, relatedCampaign}) { + fn: async function ({webhookSecret, firstName, lastName, linkedinUrl, contactSource, jobTitle, intentSignal, historicalContent, historicalContentUrl, relatedCampaign, emailAddress}) { if (!sails.config.custom.clayWebhookSecret) { @@ -106,6 +108,7 @@ module.exports = { firstName, lastName, linkedinUrl, + emailAddress, contactSource, jobTitle, })