Skip to content

Commit

Permalink
chore: Remove contact sales slack message (#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Mar 7, 2024
1 parent a4f1d0d commit 70a1662
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frontend/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,19 +326,6 @@ app.post('/api/event', (req, res) => {

app.post('/api/webflow/webhook', (req, res) => {
if (req.body.name === 'Contact Form') {
// Post to Slack
if (process.env.SLACK_TOKEN && postToSlack) {
formMessage = 'New Contact Us form!\r\n\r\n'
formMessage += 'Name: ' + req.body.data.name + '\r\n'
formMessage += 'Email: ' + req.body.data.email + '\r\n'
formMessage += 'Phone: ' + req.body.data.phone + '\r\n'
formMessage += 'Message: ' + req.body.data.message + '\r\n'

slackClient(formMessage, 'contact-sales').finally(() => {
console.log('Contact us form sent to Slack:\r\n' + formMessage)
})
}

// Post to Pipedrive
if (postToSlack) {
console.log('Contact Us Form - Creating Pipedrive Lead')
Expand Down

0 comments on commit 70a1662

Please sign in to comment.