mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
Add airtable write-access key (#1678)
This commit is contained in:
parent
38772441ab
commit
0ff2a0e9b8
14 changed files with 18 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import AirtablePlus from 'airtable-plus'
|
||||
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
tableName: 'Users'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default async function handler(req, res) {
|
|||
const updatedFields = { deleted: true }
|
||||
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
tableName: 'Showcase'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default async function handler(req, res) {
|
|||
updatedFields['ReadMeLink'] = body.readMeLink
|
||||
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
tableName: 'Showcase'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export default async function handler(req, res) {
|
|||
}
|
||||
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
tableName: 'Showcase'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ import AirtablePlus from 'airtable-plus'
|
|||
|
||||
const usersTable = new AirtablePlus({
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Users'
|
||||
})
|
||||
|
||||
const votesTable = new AirtablePlus({
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Vote'
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ async function inviteToArcadius({ email }) {
|
|||
async function inviteToAirtable({ email, ip }) {
|
||||
const airtable = new AirtablePlus({
|
||||
baseID: 'appaqcJtn33vb59Au',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Arcade Joins'
|
||||
})
|
||||
return await airtable.create({ 'Email': email, 'IP': ip })
|
||||
|
|
@ -26,7 +26,7 @@ async function inviteToAirtable({ email, ip }) {
|
|||
async function markInvitedInAirtable({ recordID }) {
|
||||
const airtable = new AirtablePlus({
|
||||
baseID: 'appaqcJtn33vb59Au',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Arcade Joins'
|
||||
})
|
||||
const result = await airtable.update(recordID, { 'Invited': true })
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import AirtablePlus from "airtable-plus"
|
|||
|
||||
const saveProject = async (parts = [], idea) => {
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'appKjALSnOoA0EmPk',
|
||||
tableName: 'Cached Ideas'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import AirtablePlus from 'airtable-plus'
|
||||
|
||||
const rsvpsTable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'appKjALSnOoA0EmPk',
|
||||
tableName: 'RSVPs'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import AirtablePlus from "airtable-plus"
|
|||
|
||||
export const findOrCreateProject = async (partsList = []) => {
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'appKjALSnOoA0EmPk',
|
||||
tableName: 'Cached Projects'
|
||||
})
|
||||
|
|
@ -32,7 +32,7 @@ export const findOrCreateProject = async (partsList = []) => {
|
|||
|
||||
const createProject = async (partsList = []) => {
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'appKjALSnOoA0EmPk',
|
||||
tableName: 'Supported Parts'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { getCode } from 'country-list'
|
|||
|
||||
const applicationsTable = new AirtablePlus({
|
||||
baseID: 'apppALh5FEOKkhjLR',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Events'
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import AirtablePlus from 'airtable-plus'
|
|||
|
||||
const applicationsTable = new AirtablePlus({
|
||||
baseID: 'apppALh5FEOKkhjLR',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'Events'
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const sgMail = require('@sendgrid/mail')
|
|||
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
|
||||
|
||||
const joinTable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'appaqcJtn33vb59Au',
|
||||
tableName: 'Join Requests'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import AirtablePlus from 'airtable-plus'
|
||||
|
||||
const peopleTable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'apptEEFG5HTfGQE7h',
|
||||
tableName: 'People'
|
||||
})
|
||||
const addressesTable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
baseID: 'apptEEFG5HTfGQE7h',
|
||||
tableName: 'Addresses'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import AirtablePlus from 'airtable-plus'
|
|||
|
||||
const airtable = new AirtablePlus({
|
||||
baseID: 'app1o9tRo6XulLnsr',
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
apiKey: process.env.AIRTABLE_WRITE_API_KEY,
|
||||
tableName: 'rsvp'
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue