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)
try {
const slackSuccess = await notifySlack(body);
if (slackSuccess) {
console.log(
`Successfully sent ${body.inquiryType} inquiry notification to Slack`,
);
} else {
console.warn(
`Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
);
}
} catch (error) {
console.error("Error sending to Slack:", error);
// Continue with email even if Slack fails
}
// // Send notification to Slack (sales or support channel)
// try {
// const slackSuccess = await notifySlack(body);
// if (slackSuccess) {
// console.log(
// `Successfully sent ${body.inquiryType} inquiry notification to Slack`,
// );
// } else {
// console.warn(
// `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
// );
// }
// } catch (error) {
// console.error("Error sending to Slack:", error);
// // Continue with email even if Slack fails
// }
// Format email content
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;