From 5b98924381b80a0b4d535eef981974817adf1823 Mon Sep 17 00:00:00 2001 From: Charles Zhu Date: Tue, 22 Aug 2023 01:32:58 +0900 Subject: [PATCH] fixed team page errors and removed general members --- getOfficers.js | 2 +- getOfficers.ts | 8 +------- pages/teamPage.tsx | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/getOfficers.js b/getOfficers.js index 43d0e17..345eff2 100644 --- a/getOfficers.js +++ b/getOfficers.js @@ -201,7 +201,7 @@ function getOfficerData(committeeName) { // empty row return; if (committees.has(row[0])) { - console.log(`\n\n\n${row[0]}\n\n\n`) + console.log(`\n\n\n${row[0]}\n\n\n`); // row with only committee name var committee = row[0]; currCommittee = diff --git a/getOfficers.ts b/getOfficers.ts index 8684caa..27087a6 100644 --- a/getOfficers.ts +++ b/getOfficers.ts @@ -8,7 +8,6 @@ const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '{}'; export default async function getOfficerData( committeeName: string, ): Promise { - const sheets = google.sheets({ version: 'v4' }); // Get JWT Token to access sheet const service_account = JSON.parse(SERVICE_ACCOUNT); @@ -84,9 +83,4 @@ export default async function getOfficerData( officerID++; }); return officers; -} - - - - - +} \ No newline at end of file diff --git a/pages/teamPage.tsx b/pages/teamPage.tsx index 8f11c97..37a5aaf 100644 --- a/pages/teamPage.tsx +++ b/pages/teamPage.tsx @@ -59,4 +59,4 @@ export const getStaticProps: GetStaticProps = async () => { }, revalidate: 3600, }; -}; \ No newline at end of file +};