diff --git a/clean.js b/clean.js index e1a94ae..11f6337 100644 --- a/clean.js +++ b/clean.js @@ -30,7 +30,7 @@ s3.listObjects({ Bucket: bucketName }).promise().then((data) => { for (let i = 0; i < data.Contents.length; i++) { objectKeys.push({ - Key: data.Contents[i].Key + Key: data.Contents[parseInt(i)].Key }); }