add logging, call file cb if key does not exist

This commit is contained in:
Cassie Tarakajian 2018-01-08 14:39:33 -05:00
parent 3f5420d437
commit 26b37b6ec7

View file

@ -44,6 +44,7 @@ Project.count({}).exec().then((numProjects) => {
console.log(project.name);
async.eachSeries(project.files, (file, fileCb) => {
if (file.url && file.url.includes(process.env.S3_BUCKET) && !file.url.includes(userId)) {
console.log(file.url);
const key = file.url.split('/').pop();
console.log(key);
const params = {