Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 committed Jul 24, 2024
1 parent 66db3e2 commit cbc8e30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/scripts/vote_tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,13 @@ module.exports = async ({ context }) => {

if (updatedTSCMembers.length > 0) {
try {
const combinedData = [...voteDetails, ...updatedTSCMembers];
await writeFile(voteTrackingFile, JSON.stringify(combinedData, null, 2));
updatedVoteDetails = [...combinedData]
updatedVoteDetails.concat(...updatedTSCMembers)
await writeFile(voteTrackingFile, JSON.stringify(updatedVoteDetails, null, 2));
} catch (writeError) {
console.error('Error wile writing file:' ,writeError)
}
}
return combinedData
return updatedVoteDetails
}
} catch (error) {
console.error('Error while running the vote_tracker workflow:', error);
Expand Down

0 comments on commit cbc8e30

Please sign in to comment.