refactor: comment out Slack notification logic in contact form submission

- Temporarily disabled the Slack notification feature in the contact form submission process.
- Retained the structure for potential future reactivation while ensuring email notifications remain functional.
This commit is contained in:
Mauricio Siu
2025-12-09 13:20:07 -06:00
parent 289a6732f3
commit 1c53123bd1

View File

@@ -71,22 +71,22 @@ export async function POST(request: NextRequest) {
} }
} }
// Send notification to Slack (sales or support channel) // // Send notification to Slack (sales or support channel)
try { // try {
const slackSuccess = await notifySlack(body); // const slackSuccess = await notifySlack(body);
if (slackSuccess) { // if (slackSuccess) {
console.log( // console.log(
`Successfully sent ${body.inquiryType} inquiry notification to Slack`, // `Successfully sent ${body.inquiryType} inquiry notification to Slack`,
); // );
} else { // } else {
console.warn( // console.warn(
`Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`, // `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
); // );
} // }
} catch (error) { // } catch (error) {
console.error("Error sending to Slack:", error); // console.error("Error sending to Slack:", error);
// Continue with email even if Slack fails // // Continue with email even if Slack fails
} // }
// Format email content // Format email content
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`; const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;