summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-10-29 15:34:39 +0000
committerDavid Hill <[email protected]>2025-10-29 15:34:39 +0000
commit0fbedc5e195d254dfe7fe9166d724ec9ad98ec93 (patch)
tree5187d0fda01b77c556cab63e150ea7208f164dfd /packages/console/app/src
parent7baa75135159907d4e28f82e1e9a22fe6ef7e6e1 (diff)
downloadopencode-0fbedc5e195d254dfe7fe9166d724ec9ad98ec93.tar.gz
opencode-0fbedc5e195d254dfe7fe9166d724ec9ad98ec93.zip
Fix form submission
Diffstat (limited to 'packages/console/app/src')
-rw-r--r--packages/console/app/src/routes/api/enterprise.ts6
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({
- subject: `Enterprise Inquiry from ${body.company}`,
+ subject: `Enterprise Inquiry from ${body.name}`,
body: emailContent,
})