mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Don't trigger arcadius
This commit is contained in:
parent
1902705e94
commit
3790d4826e
1 changed files with 14 additions and 14 deletions
|
|
@ -1,19 +1,19 @@
|
|||
import AirtablePlus from 'airtable-plus'
|
||||
|
||||
// async function inviteToArcadius({ email }) {
|
||||
// const response = await fetch('https://arcadius.hackclub.com/slack-invite', {
|
||||
// body: JSON.stringify({
|
||||
// email
|
||||
// }),
|
||||
// method: 'POST',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// Authorization: `Bearer ${process.env.SLACK_KEY}`
|
||||
// }
|
||||
// })
|
||||
async function inviteToArcadius({ email }) {
|
||||
const response = await fetch('https://arcadius.hackclub.com/slack-invite', {
|
||||
body: JSON.stringify({
|
||||
email
|
||||
}),
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${process.env.SLACK_KEY}`
|
||||
}
|
||||
})
|
||||
|
||||
// return response
|
||||
// }
|
||||
return response
|
||||
}
|
||||
async function inviteToAirtable({ email, ip }) {
|
||||
const airtable = new AirtablePlus({
|
||||
baseID: 'apponYMK8arNnHTk5' ,// waitlist
|
||||
|
|
@ -34,7 +34,7 @@ export default async function handler(req, res) {
|
|||
const ip = req.headers['x-forwarded-for'] || req.socket.remoteAddress
|
||||
|
||||
const result = await Promise.all([
|
||||
inviteToArcadius({ email }),
|
||||
// inviteToArcadius({ email }),
|
||||
inviteToAirtable({ email, ip })
|
||||
])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue