From b2d6078170b8e9c0a45a8c3978450aecf8feb675 Mon Sep 17 00:00:00 2001 From: Will Kelly <67284402+wkelly17@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:49:43 -0600 Subject: [PATCH] adjust management of dates8 --- actions/dates/dates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/dates/dates.js b/actions/dates/dates.js index 7091dfa..5f4c7bc 100644 --- a/actions/dates/dates.js +++ b/actions/dates/dates.js @@ -17,9 +17,9 @@ async function run() { `Received ${allFilesInGit.length} all files and ${filesModifiedInCommit.length} modified files` ); - const metadataUpdated = Object.entries(allFilesInGitArr).reduce( + const metadataUpdated = Object.entries(metaParsed).reduce( (acc, [key, value]) => { - if (!allFilesInGit.includes(key)) { + if (!allFilesInGitArr.includes(key)) { // If this key is in the metadata but not our project any more, don't return it; return acc; } @@ -29,7 +29,7 @@ async function run() { return acc; } // file has not been updated - acc[key] = metaParsed[key]; + acc[key] = value; return acc; }, {}