Skip to content

Commit 0083ca3

Browse files
committed
Fix assembly application form not writing to Notion
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0127uQouMiBqKa1wH52kX4Qb
1 parent ff47caa commit 0083ca3

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

netlify/functions/submission-created.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,21 @@ async function handleAssemblyApplication(notion, data) {
9090
"Job Title": {
9191
rich_text: [{ text: { content: data["job-title"] || "" } }],
9292
},
93-
"LinkedIn URL": { url: data["linkedin-url"] || null },
94-
"GitHub Username": {
95-
rich_text: [{ text: { content: data["github-username"] || "" } }],
96-
},
9793
"Sector / Industry": data["sector-industry"]
9894
? { select: { name: data["sector-industry"] } }
9995
: undefined,
100-
Timezone: { rich_text: [{ text: { content: data["timezone"] || "" } }] },
10196
"Years of Experience": data["years-of-experience"]
10297
? { select: { name: data["years-of-experience"] } }
10398
: undefined,
10499
Expertise: { rich_text: [{ text: { content: data["expertise"] || "" } }] },
105100
Motivation: {
106101
rich_text: [{ text: { content: data["motivation"] || "" } }],
107102
},
108-
"Previous GSF Involvement": {
109-
rich_text: [
110-
{ text: { content: data["previous-gsf-involvement"] || "" } },
111-
],
112-
},
113103
"How Did You Hear About This?": {
114104
rich_text: [{ text: { content: data["how-did-you-hear"] || "" } }],
115105
},
116106
"Stay Informed": { checkbox: data["stay-informed"] === "true" },
117-
Confirmation: { checkbox: data["confirmation"] === "true" },
107+
Confirmation: { checkbox: data["privacy-consent"] === "true" },
118108
};
119109

120110
// Remove undefined values (e.g. empty select fields)

0 commit comments

Comments
 (0)