diff --git a/working.js b/working.js index 6c5a7f3..652e04a 100644 --- a/working.js +++ b/working.js @@ -16,7 +16,7 @@ s3 s3.putObject( { Bucket: BUCKET, Key: file.path, Body: fs.createReadStream(file.path) } ).promise() - .then(() => console.log("success")) + .then(() => { console.log("success"); fs.unlinkSync("hello.txt") }) .catch(err => console.log(err)) }) })