add to s3 script

This commit is contained in:
Cassie Tarakajian 2016-12-13 20:32:57 -05:00
parent ebb7729fd0
commit c9df78a667

View file

@ -55,12 +55,13 @@ objectsResponse.on('end', () => {
uploadedFiles.forEach(fileKey => {
if (s3Files.indexOf(fileKey) === -1) {
//delete file
filesToDelete.push(fileKey);
filesToDelete.push({Key: fileKey});
// console.log("would delete file: ", fileKey);
}
});
console.log("To delete: ", filesToDelete.length);
console.log("Total S3 files: ", uploadedFiles.length);
console.log("Total S3 files in mongo: ", s3Files.length);
});
// let projectsNotToUpdate;