mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Remove unused lines
This commit is contained in:
parent
3574e29d1a
commit
b37e929268
1 changed files with 0 additions and 10 deletions
|
|
@ -20,14 +20,6 @@ export default async function handler(req, res) {
|
|||
updatedFields['Play Link'] = body.playLink
|
||||
updatedFields['Screenshot'] = body.images
|
||||
|
||||
// allow list of fields to change
|
||||
// const allowedFields = ['Name', 'Description', 'Slack Link', 'Code Link', 'Play Link', 'Screenshot', 'Github Profile']
|
||||
// Object.keys(body).forEach(key => {
|
||||
// if (!allowedFields.includes(key)) {
|
||||
// delete body[key]
|
||||
// }
|
||||
// })
|
||||
|
||||
const airtable = new AirtablePlus({
|
||||
apiKey: process.env.AIRTABLE_API_KEY,
|
||||
baseID: 'app4kCWulfB02bV8Q',
|
||||
|
|
@ -38,8 +30,6 @@ export default async function handler(req, res) {
|
|||
|
||||
const project = await airtable.update(projectID, updatedFields )
|
||||
|
||||
console.log(project.fields)
|
||||
|
||||
const results = {
|
||||
id: project.id,
|
||||
title: project.fields['Name'] || '',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue