debug asset migration
This commit is contained in:
parent
3b36cd1e9c
commit
0bac435c72
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ Project.find({}, (err, projects) => {
|
|||
const userId = project.user.valueOf();
|
||||
project.files.forEach((file, fileIndex) => {
|
||||
if (file.url && file.url.includes(process.env.S3_BUCKET) && !file.url.includes(userId)) {
|
||||
console.log(file.url);
|
||||
const key = file.url.split('/').pop();
|
||||
console.log(key);
|
||||
const params = {
|
||||
|
|
Loading…
Reference in a new issue