revert: changes because the airtable api key doesn't have sufficient permissions to do what i need it to do

This commit is contained in:
sarthak 2024-04-02 09:56:10 -05:00 committed by GitHub
parent 4ab3237398
commit 1d84d254a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,18 +35,22 @@ export default async function handler(req, res) {
'Event Name': data.eventName,
'Event Website': data.eventWebsite,
'Tell us about your event': data.eventDescription,
'Mailing Address': '',
'Address Line 1': '',
City: '',
State: '',
'Zip Code': '',
'Address Country': '',
'Address Country Code': '',
'Mailing Address': data.userAddress,
'Address Line 1': data.addressLine1,
City: data.addressCity,
State: data.addressState,
'Zip Code': data.addressZip,
'Address Country': data.addressCountry,
'Address Country Code': data.addressCountryCode,
'Event Location': data.eventLocation,
'Event Country Code': getCode(data.eventLocation),
'Have you used HCB for any previous events?': '',
'How did you hear about HCB?': 'This field doesn\'t exist on the form anymore.',
Transparent: 'Yes, please!',
'Event Country Code': data.eventCountryCode,
'Have you used HCB for any previous events?':
data.returningUser === 'true'
? 'Yes, I have used HCB before'
: 'No, first time!',
'How did you hear about HCB?': data.referredBy,
Transparent:
data.transparent === 'true' ? 'Yes, please!' : 'No, thanks.',
'HCB account URL': `https://hcb.hackclub.com/${r.slug}`,
'Contact Option': data.contactOption,
'Slack Username': data.slackUsername,