From 26b37b6ec7efbee28285fa25e350f495eaea6a83 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Mon, 8 Jan 2018 14:39:33 -0500 Subject: [PATCH] add logging, call file cb if key does not exist --- server/migrations/s3UnderUser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/migrations/s3UnderUser.js b/server/migrations/s3UnderUser.js index 85144093..cb298b0a 100644 --- a/server/migrations/s3UnderUser.js +++ b/server/migrations/s3UnderUser.js @@ -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 = {