Skip to content

Commit 0fbedc5

Browse files
committed
Fix form submission
1 parent 7baa751 commit 0fbedc5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/console/app/src/routes/api/enterprise.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { AWS } from "@opencode-ai/console-core/aws.js"
33

44
interface EnterpriseFormData {
55
name: string
6-
company: string
76
role: string
87
email: string
98
message: string
@@ -14,7 +13,7 @@ export async function POST(event: APIEvent) {
1413
const body = (await event.request.json()) as EnterpriseFormData
1514

1615
// Validate required fields
17-
if (!body.name || !body.company || !body.role || !body.email || !body.message) {
16+
if (!body.name || !body.role || !body.email || !body.message) {
1817
return Response.json({ error: "All fields are required" }, { status: 400 })
1918
}
2019

@@ -29,7 +28,6 @@ export async function POST(event: APIEvent) {
2928
New Enterprise Inquiry
3029
3130
Name: ${body.name}
32-
Company: ${body.company}
3331
Role: ${body.role}
3432
Email: ${body.email}
3533
@@ -40,7 +38,7 @@ ${body.message}
4038
// Send email using AWS SES
4139
await AWS.sendEmail({
4240
43-
subject: `Enterprise Inquiry from ${body.company}`,
41+
subject: `Enterprise Inquiry from ${body.name}`,
4442
body: emailContent,
4543
})
4644

0 commit comments

Comments
 (0)