Fix screenshot displaying issue
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Léo Carpentier 2022-02-17 10:41:24 +02:00
parent 6370a37e5a
commit 426370bc62

View File

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