From 44ee7de792fbf9969cc8aac62fc6c2cb175486a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Diamond?= <32074058+Andre-Diamond@users.noreply.github.com> Date: Thu, 30 May 2024 09:15:30 +0200 Subject: [PATCH] Refactor file paths for meeting summaries to include 'Snet-Ambassador-Program' --- netlify/functions/batchUpdateMeetingSummariesArray.js | 2 +- netlify/functions/batchUpdateMeetingSummariesById.js | 2 +- netlify/functions/singleCallUpdateMeetingSummariesArray.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netlify/functions/batchUpdateMeetingSummariesArray.js b/netlify/functions/batchUpdateMeetingSummariesArray.js index 77a7d9f..89d7c44 100644 --- a/netlify/functions/batchUpdateMeetingSummariesArray.js +++ b/netlify/functions/batchUpdateMeetingSummariesArray.js @@ -40,7 +40,7 @@ async function commitSummariesToGitHub(allSummaries) { for (const year in allSummaries) { const yearSummaries = allSummaries[year]; - const path = `Data/Meeting-Summaries/${year}/meeting-summaries-array.json`; + const path = `Data/Snet-Ambassador-Program/Meeting-Summaries/${year}/meeting-summaries-array.json`; let currentSHA = null; try { diff --git a/netlify/functions/batchUpdateMeetingSummariesById.js b/netlify/functions/batchUpdateMeetingSummariesById.js index f8ec7cd..705f446 100644 --- a/netlify/functions/batchUpdateMeetingSummariesById.js +++ b/netlify/functions/batchUpdateMeetingSummariesById.js @@ -43,7 +43,7 @@ async function commitSummariesToGitHub(allSummaries) { for (const year in allSummaries) { const yearSummaries = allSummaries[year]; - const path = `Data/Meeting-Summaries/${year}/meeting-summaries-by-id.json`; + const path = `Data/Snet-Ambassador-Program/Meeting-Summaries/${year}/meeting-summaries-by-id.json`; let currentSHA = null; try { diff --git a/netlify/functions/singleCallUpdateMeetingSummariesArray.js b/netlify/functions/singleCallUpdateMeetingSummariesArray.js index cbd2eef..62725d6 100644 --- a/netlify/functions/singleCallUpdateMeetingSummariesArray.js +++ b/netlify/functions/singleCallUpdateMeetingSummariesArray.js @@ -31,7 +31,7 @@ export const handler = async (event, context) => { for (const year in summariesByYear) { const yearSummaries = summariesByYear[year]; - const path = `Data/Meeting-Summaries/${year}/meeting-summaries-array.json`; + const path = `Data/Snet-Ambassador-Program/Meeting-Summaries/${year}/meeting-summaries-array.json`; // Get the current SHA of the file let currentSHA = null;