fix syntax error

This commit is contained in:
Cassie Tarakajian 2017-12-26 22:21:41 -05:00
parent 9127d8f553
commit 754518bf77

View file

@ -32,7 +32,7 @@ Project.count({})
let projects = await Project.find({}).skip(i).limit(CHUNK).exec(); let projects = await Project.find({}).skip(i).limit(CHUNK).exec();
projects.forEach((project, projectIndex) => { projects.forEach((project, projectIndex) => {
console.log(project.name); console.log(project.name);
project.files.forEach((async file, fileIndex) => { project.files.forEach(async (file, fileIndex) => {
if (file.url && file.url.includes('p5.js-webeditor')) { if (file.url && file.url.includes('p5.js-webeditor')) {
file.url = file.url.replace('p5.js-webeditor', process.env.S3_BUCKET); file.url = file.url.replace('p5.js-webeditor', process.env.S3_BUCKET);
} }