mirror of
https://github.com/fleetdm/fleet
synced 2026-05-18 22:49:19 +00:00
Website: update clay webhook (#39068)
Changes: - Updated the clay webhook to only trim LinkedIn URLs if one is provided.
This commit is contained in:
parent
f5b91feba5
commit
b3fcb2c7db
1 changed files with 4 additions and 1 deletions
|
|
@ -126,7 +126,10 @@ module.exports = {
|
|||
throw 'couldNotCreateActivity';
|
||||
}
|
||||
|
||||
let trimmedLinkedinUrl = linkedinUrl.replace(sails.config.custom.RX_PROTOCOL_AND_COMMON_SUBDOMAINS, '');
|
||||
let trimmedLinkedinUrl;
|
||||
if(linkedinUrl) {
|
||||
trimmedLinkedinUrl = linkedinUrl.replace(sails.config.custom.RX_PROTOCOL_AND_COMMON_SUBDOMAINS, '');
|
||||
}
|
||||
|
||||
// Create the new Fleet website page view record.
|
||||
let newHistoricalRecordId = await sails.helpers.salesforce.createHistoricalEvent.with({
|
||||
|
|
|
|||
Loading…
Reference in a new issue