log userid
This commit is contained in:
parent
26b37b6ec7
commit
b4833a6fb1
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ Project.count({}).exec().then((numProjects) => {
|
|||
async.eachSeries(project.files, (file, fileCb) => {
|
||||
if (file.url && file.url.includes(process.env.S3_BUCKET) && !file.url.includes(userId)) {
|
||||
console.log(file.url);
|
||||
console.log(userId);
|
||||
const key = file.url.split('/').pop();
|
||||
console.log(key);
|
||||
const params = {
|
||||
|
@ -56,6 +57,7 @@ Project.count({}).exec().then((numProjects) => {
|
|||
client.moveObject(params)
|
||||
.on('err', (err) => {
|
||||
console.log(err);
|
||||
fileCb();
|
||||
})
|
||||
.on('end', () => {
|
||||
file.url = (process.env.S3_BUCKET_URL_BASE ||
|
||||
|
|
Loading…
Reference in a new issue