Change linkedinUrl requirement to optional (#39033)

@eashaw trying to fire this when I don't have a LinkedIn. Any
objections?

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
Sam Pfluger 2026-01-29 18:01:24 -06:00 committed by GitHub
parent 26ed789326
commit 54ba38716c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})