add logging, call file cb if key does not exist
This commit is contained in:
parent
3f5420d437
commit
26b37b6ec7
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ Project.count({}).exec().then((numProjects) => {
|
||||||
console.log(project.name);
|
console.log(project.name);
|
||||||
async.eachSeries(project.files, (file, fileCb) => {
|
async.eachSeries(project.files, (file, fileCb) => {
|
||||||
if (file.url && file.url.includes(process.env.S3_BUCKET) && !file.url.includes(userId)) {
|
if (file.url && file.url.includes(process.env.S3_BUCKET) && !file.url.includes(userId)) {
|
||||||
|
console.log(file.url);
|
||||||
const key = file.url.split('/').pop();
|
const key = file.url.split('/').pop();
|
||||||
console.log(key);
|
console.log(key);
|
||||||
const params = {
|
const params = {
|
||||||
|
|
Loading…
Reference in a new issue