File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/console/app/src/routes/api Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { AWS } from "@opencode-ai/console-core/aws.js"
33
44interface 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) {
2928New Enterprise Inquiry
3029
3130Name: ${ body . name }
32- Company: ${ body . company }
3331Role: ${ body . role }
3432Email: ${ body . email }
3533
@@ -40,7 +38,7 @@ ${body.message}
4038 // Send email using AWS SES
4139 await AWS . sendEmail ( {
424043- subject : `Enterprise Inquiry from ${ body . company } ` ,
41+ subject : `Enterprise Inquiry from ${ body . name } ` ,
4442 body : emailContent ,
4543 } )
4644
You can’t perform that action at this time.
0 commit comments