Skip to content

Commit

Permalink
email to contact
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 22, 2024
1 parent 9d525bf commit 091d45c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _api/send-telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
}

try {
const { projectName, description, timeline, customTimeline, email } =
const { projectName, description, timeline, customTimeline, contact } =
req.body;

// Validate required fields
if (
!projectName ||
!description ||
!email ||
!contact ||
!(timeline || customTimeline)
) {
return res.status(400).json({ message: "Missing required fields" });
Expand All @@ -29,7 +29,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
⏰ Timeline: ${timeline === "custom" ? customTimeline : timeline}
📧 Contact Email: ${email}
📧 Contact: ${contact}
`;

// Send to Telegram
Expand Down

0 comments on commit 091d45c

Please sign in to comment.