From 754518bf771dc5bd18e25ecb92dda82f20651ae0 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 26 Dec 2017 22:21:41 -0500 Subject: [PATCH] fix syntax error --- server/migrations/moveBucket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/migrations/moveBucket.js b/server/migrations/moveBucket.js index 6ecf68ef..69dc2c56 100644 --- a/server/migrations/moveBucket.js +++ b/server/migrations/moveBucket.js @@ -32,7 +32,7 @@ Project.count({}) let projects = await Project.find({}).skip(i).limit(CHUNK).exec(); projects.forEach((project, projectIndex) => { 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')) { file.url = file.url.replace('p5.js-webeditor', process.env.S3_BUCKET); }