From 977630c847c8587b2e4984d7007a728b53f907fd Mon Sep 17 00:00:00 2001 From: kiryl1 <64288350+kiryl1@users.noreply.github.com> Date: Tue, 12 Jul 2022 16:09:59 -0700 Subject: [PATCH] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 680f638..d931268 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ function writeToS3(response,FILE_NAME,path) { const data = client.send(new PutObjectCommand(putParams)); //sending to s3 bucket console.log("File Successfully Uploaded"); + fileStream.close() }) }