remove deletion step
This commit is contained in:
parent
1e90ea1437
commit
3b93a5ff19
1 changed files with 7 additions and 7 deletions
|
@ -68,13 +68,13 @@ objectsResponse.on('end', () => {
|
||||||
Objects: filesToDelete,
|
Objects: filesToDelete,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
let del = client.deleteObjects(params);
|
// let del = client.deleteObjects(params);
|
||||||
del.on('err', (err) => {
|
// del.on('err', (err) => {
|
||||||
console.log(err);
|
// console.log(err);
|
||||||
});
|
// });
|
||||||
del.on('end', () => {
|
// del.on('end', () => {
|
||||||
console.log('deleted extra S3 files!');
|
// console.log('deleted extra S3 files!');
|
||||||
});
|
// });
|
||||||
console.log("To delete: ", filesToDelete.length);
|
console.log("To delete: ", filesToDelete.length);
|
||||||
console.log("Total S3 files: ", uploadedFiles.length);
|
console.log("Total S3 files: ", uploadedFiles.length);
|
||||||
console.log("Total S3 files in mongo: ", s3Files.length);
|
console.log("Total S3 files in mongo: ", s3Files.length);
|
||||||
|
|
Loading…
Reference in a new issue