diff --git a/packages/backend-common/src/sqs.ts b/packages/backend-common/src/sqs.ts index bef4c6e3..687451d2 100644 --- a/packages/backend-common/src/sqs.ts +++ b/packages/backend-common/src/sqs.ts @@ -77,9 +77,8 @@ export const generateOutputSignedUrlAndSendMessage = async ( translationRequested, ); - const jobId = translationRequested ? `${s3Key}-translation` : s3Key; const job: TranscriptionJob = { - id: jobId, // id of the source file + id: s3Key, // id of the source file inputSignedUrl, sentTimestamp: new Date().toISOString(), userEmail, @@ -105,7 +104,7 @@ export const generateOutputSignedUrlAndSendMessage = async ( return await sendMessage( client, queueUrl, - JSON.stringify({ ...job, translate: true }), + JSON.stringify({ ...job, id: `${s3Key}-translation`, translate: true }), s3Key, ); }