mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
Fix the airtable RSVP
This commit is contained in:
parent
c89819b33d
commit
864c40dc89
1 changed files with 3 additions and 5 deletions
|
|
@ -16,13 +16,11 @@ async function inviteToArcadius({ email }) {
|
|||
}
|
||||
async function inviteToAirtable({ email, ip }) {
|
||||
const airtable = new AirtablePlus({
|
||||
baseID: 'apponYMK8arNnHTk5' ,// waitlist
|
||||
// baseID: 'appaqcJtn33vb59Au', // prod
|
||||
baseID: 'appaqcJtn33vb59Au',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
// tableName: 'Arcade Joins' // prod
|
||||
tableName: 'Main' // waitlist
|
||||
tableName: 'Arcade Joins'
|
||||
})
|
||||
return await airtable.create({ email: email, ip: ip, Status: "Waitlist" })
|
||||
return await airtable.create({ 'Email': email, 'IP': ip })
|
||||
}
|
||||
|
||||
export default async function handler(req, res) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue