Prevent false positives!
This commit is contained in:
parent
6a5f7b64ae
commit
e199498603
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ s3
|
||||||
s3.putObject(
|
s3.putObject(
|
||||||
{ Bucket: BUCKET, Key: file.path, Body: fs.createReadStream(file.path) }
|
{ Bucket: BUCKET, Key: file.path, Body: fs.createReadStream(file.path) }
|
||||||
).promise()
|
).promise()
|
||||||
.then(() => console.log("success"))
|
.then(() => { console.log("success"); fs.unlinkSync("hello.txt") })
|
||||||
.catch(err => console.log(err))
|
.catch(err => console.log(err))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue