From 0083ca321d91af3de188dcc71c8e9d51051c9e57 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 19 Jun 2026 11:15:15 +0000 Subject: [PATCH] Fix assembly application form not writing to Notion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove four properties that don't exist in the Notion DB schema (LinkedIn URL, GitHub Username, Timezone, Previous GSF Involvement), and fix privacy-consent → confirmation field name mismatch. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_0127uQouMiBqKa1wH52kX4Qb --- netlify/functions/submission-created.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/netlify/functions/submission-created.js b/netlify/functions/submission-created.js index 1cb7db25..c15bdb3b 100644 --- a/netlify/functions/submission-created.js +++ b/netlify/functions/submission-created.js @@ -90,14 +90,9 @@ async function handleAssemblyApplication(notion, data) { "Job Title": { rich_text: [{ text: { content: data["job-title"] || "" } }], }, - "LinkedIn URL": { url: data["linkedin-url"] || null }, - "GitHub Username": { - rich_text: [{ text: { content: data["github-username"] || "" } }], - }, "Sector / Industry": data["sector-industry"] ? { select: { name: data["sector-industry"] } } : undefined, - Timezone: { rich_text: [{ text: { content: data["timezone"] || "" } }] }, "Years of Experience": data["years-of-experience"] ? { select: { name: data["years-of-experience"] } } : undefined, @@ -105,16 +100,11 @@ async function handleAssemblyApplication(notion, data) { Motivation: { rich_text: [{ text: { content: data["motivation"] || "" } }], }, - "Previous GSF Involvement": { - rich_text: [ - { text: { content: data["previous-gsf-involvement"] || "" } }, - ], - }, "How Did You Hear About This?": { rich_text: [{ text: { content: data["how-did-you-hear"] || "" } }], }, "Stay Informed": { checkbox: data["stay-informed"] === "true" }, - Confirmation: { checkbox: data["confirmation"] === "true" }, + Confirmation: { checkbox: data["privacy-consent"] === "true" }, }; // Remove undefined values (e.g. empty select fields)