Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions netlify/functions/submission-created.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,21 @@ 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,
Expertise: { rich_text: [{ text: { content: data["expertise"] || "" } }] },
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)
Expand Down
Loading