From 6759debe95070bc4ff6bffadc931253384013472 Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Tue, 19 Sep 2023 13:57:41 +0300 Subject: [PATCH] Fix error Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a6b62cb..61cbbbd 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ async function run() { async function commitChanges(file, filePath) { const commitMessage = 'Commit message here'; - let newContent = JSON.stringify(newContent, null, 2); + let newContent = JSON.stringify(file, null, 2); // Append a newline character to the end of the new content newContent += '\n';