From a307ddf84bb6130bb735f5fd78e1c9ba25ec4a56 Mon Sep 17 00:00:00 2001 From: adueck Date: Wed, 27 Nov 2024 22:47:47 +0500 Subject: [PATCH] oops prob was with workflow prob --- .github/workflows/deploy-account.yml | 5 +++-- functions/lib/spreadsheet-tools.ts | 8 +------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-account.yml b/.github/workflows/deploy-account.yml index e4c191b..58cd711 100644 --- a/.github/workflows/deploy-account.yml +++ b/.github/workflows/deploy-account.yml @@ -25,8 +25,9 @@ jobs: npm install cd website npm install - cd .. - cd account + cd ../functions + npm install + cd ../account npm install npm run build npm prune --production diff --git a/functions/lib/spreadsheet-tools.ts b/functions/lib/spreadsheet-tools.ts index a0af4e1..740d646 100644 --- a/functions/lib/spreadsheet-tools.ts +++ b/functions/lib/spreadsheet-tools.ts @@ -60,13 +60,7 @@ export async function getEntriesFromSheet({ if (dictionaryEntryBooleanFields.includes(k)) { return [[k, x.toLowerCase() === "true"]]; } - return [ - [ - k, - // @ts-ignore (for some reason the CI build is failing without this ignore) - k.endsWith("p") ? standardizePashto(x.trim()) : x.trim(), - ], - ]; + return [[k, k.endsWith("p") ? standardizePashto(x.trim()) : x.trim()]]; }); return processedRow; }