fix bug delete file from aws s3

this code fixed by #1992
This commit is contained in:
grigoris 2018-10-12 18:43:58 +03:00 committed by GitHub
parent 9b1c2c2b0d
commit 262a024c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ module.exports = {
return new Promise((resolve, reject) => {
// delete file on S3 bucket
const path = file.path ? `${file.path}/` : '';
S3.deleteObjects({
S3.deleteObject({
Key: `${path}${file.hash}${file.ext}`
}, (err, data) => {
if (err) {