Clean up checkout metadata to only pass name/email/accommodation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
19700b7af7
commit
a3cdb9c372
|
|
@ -43,14 +43,6 @@ export async function POST(request: NextRequest) {
|
|||
if (registrationData) {
|
||||
metadata.name = registrationData.name || ""
|
||||
metadata.email = registrationData.email || ""
|
||||
metadata.contact = registrationData.contact || ""
|
||||
metadata.contributions = (registrationData.contributions || "").substring(0, 500)
|
||||
metadata.expectations = (registrationData.expectations || "").substring(0, 500)
|
||||
metadata.howHeard = registrationData.howHeard || ""
|
||||
metadata.dietary =
|
||||
(registrationData.dietary || []).join(", ") +
|
||||
(registrationData.dietaryOther ? `, ${registrationData.dietaryOther}` : "")
|
||||
metadata.crewConsent = registrationData.crewConsent || ""
|
||||
metadata.accommodation = includeAccommodation ? accommodationType : "none"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue