actually save project in db migration

This commit is contained in:
Cassie Tarakajian 2017-12-26 21:47:11 -05:00
parent 9880ec5070
commit 1c0da9320f

View file

@ -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}`);
});
});
});
});