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; }