|
|
|
@ -53,7 +53,7 @@ async function run() { |
|
|
|
|
let presignedUrl = await minioClient.presignedUrl('GET', minioBucket, `${doc.camera}/${doc._id}/${i}.jpg`, 60 * 60); |
|
|
|
|
screenShotArray.push({ url: presignedUrl }); |
|
|
|
|
} |
|
|
|
|
blob = JSON.stringify({...doc, ...screenShotArray}); |
|
|
|
|
blob = JSON.stringify({...doc, screenshots: [...screenShotArray]}); |
|
|
|
|
} else { |
|
|
|
|
blob = JSON.stringify({...doc}) |
|
|
|
|
}; |
|
|
|
|