Skip to content

🎥 Make videos programmatically with React

fix the bug

Jonny Burger51e9d35401c5
diff --git a/packages/lambda/src/functions/helpers/concat-videos.ts b/packages/lambda/src/functions/helpers/concat-videos.ts
index 806c596a93..f4fbc0a9a2 100644
--- a/packages/lambda/src/functions/helpers/concat-videos.ts
+++ b/packages/lambda/src/functions/helpers/concat-videos.ts
@@ -121,7 +121,9 @@ export const getAllFilesS3 = ({
if (areAllFilesDownloaded) {
console.log('All files are downloaded!');
resolve(
- filesInBucket.map((file) =>
+ // Need to use downloaded variable, not filesInBucket
+ // as it may be out of date
+ Object.keys(downloaded).map((file) =>
getChunkDownloadOutputLocation({outdir, file})
)
);