actually save project in db migration
This commit is contained in:
parent
9880ec5070
commit
1c0da9320f
1 changed files with 3 additions and 1 deletions
|
@ -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}`);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue