diff options
| author | David Hill <[email protected]> | 2025-10-29 15:34:39 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-10-29 15:34:39 +0000 |
| commit | 0fbedc5e195d254dfe7fe9166d724ec9ad98ec93 (patch) | |
| tree | 5187d0fda01b77c556cab63e150ea7208f164dfd | |
| parent | 7baa75135159907d4e28f82e1e9a22fe6ef7e6e1 (diff) | |
| download | opencode-0fbedc5e195d254dfe7fe9166d724ec9ad98ec93.tar.gz opencode-0fbedc5e195d254dfe7fe9166d724ec9ad98ec93.zip | |
Fix form submission
| -rw-r--r-- | packages/console/app/src/routes/api/enterprise.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/console/app/src/routes/api/enterprise.ts b/packages/console/app/src/routes/api/enterprise.ts index 6298ae349..d937be543 100644 --- a/packages/console/app/src/routes/api/enterprise.ts +++ b/packages/console/app/src/routes/api/enterprise.ts @@ -3,7 +3,6 @@ import { AWS } from "@opencode-ai/console-core/aws.js" interface EnterpriseFormData { name: string - company: string role: string email: string message: string @@ -14,7 +13,7 @@ export async function POST(event: APIEvent) { const body = (await event.request.json()) as EnterpriseFormData // Validate required fields - if (!body.name || !body.company || !body.role || !body.email || !body.message) { + if (!body.name || !body.role || !body.email || !body.message) { return Response.json({ error: "All fields are required" }, { status: 400 }) } @@ -29,7 +28,6 @@ export async function POST(event: APIEvent) { New Enterprise Inquiry Name: ${body.name} -Company: ${body.company} Role: ${body.role} Email: ${body.email} @@ -40,7 +38,7 @@ ${body.message} // Send email using AWS SES await AWS.sendEmail({ to: "[email protected]", - subject: `Enterprise Inquiry from ${body.company}`, + subject: `Enterprise Inquiry from ${body.name}`, body: emailContent, }) |
