From 2bbdbe8f1fe567945f40b4b4c5c5fd92da338dec Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 26 Jun 2024 09:36:38 -0300 Subject: [PATCH] adjust file content --- .../transifex/actions/download-file/download-file.mjs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/transifex/actions/download-file/download-file.mjs b/components/transifex/actions/download-file/download-file.mjs index bdd1bd5c64661..06385514a4f2f 100644 --- a/components/transifex/actions/download-file/download-file.mjs +++ b/components/transifex/actions/download-file/download-file.mjs @@ -52,11 +52,8 @@ export default { } while (response.id && response.id === preparedDownloadId); - const file = response.toString("base64"); - const buffer = Buffer.from(file, "base64"); - const tmpDir = "/tmp"; - const filePath = `${tmpDir}/downloaded_file_${this.asyncDownloadId}.json`; - fs.writeFileSync(filePath, buffer); + const filePath = `/tmp/downloaded_file_${this.asyncDownloadId}.json`; + fs.writeFileSync(filePath, JSON.stringify(response)); $.export("$summary", `Successfully downloaded file with asyncDownloadId: ${this.asyncDownloadId}`); return {