From 1c0da9320f7c46c18fd7d385d20e6f5d24f55f29 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 26 Dec 2017 21:47:11 -0500 Subject: [PATCH] actually save project in db migration --- server/migrations/moveBucket.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/migrations/moveBucket.js b/server/migrations/moveBucket.js index 10fb67ce..9c77e1db 100644 --- a/server/migrations/moveBucket.js +++ b/server/migrations/moveBucket.js @@ -30,7 +30,9 @@ Project.find({}, (err, projects) => { if (file.url && file.url.includes('p5.js-webeditor')) { file.url = file.url.replace('p5.js-webeditor', process.env.S3_BUCKET); } - // project.save(); + project.save((err, savedProject) => { + console.log(`updated file ${file.url}`); + }); }); }); }); \ No newline at end of file