Skip to content

Commit

Permalink
Fix output urls
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 28, 2025
1 parent 774d036 commit b3708aa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/backend-common/src/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ export const generateOutputSignedUrlAndSendMessage = async (
outputBucket,
userEmail,
7,
translationRequested,
false,
);
const signedUrlsTranslation = await generateOutputSignedUrls(
s3Key,
region,
outputBucket,
userEmail,
7,
true,
);

const job: TranscriptionJob = {
id: s3Key, // id of the source file
inputSignedUrl,
Expand Down Expand Up @@ -104,7 +111,12 @@ export const generateOutputSignedUrlAndSendMessage = async (
return await sendMessage(
client,
queueUrl,
JSON.stringify({ ...job, id: `${s3Key}-translation`, translate: true }),
JSON.stringify({
...job,
id: `${s3Key}-translation`,
translate: true,
outputBucketUrls: signedUrlsTranslation,
}),
s3Key,
);
}
Expand Down

0 comments on commit b3708aa

Please sign in to comment.