Skip to content

Commit 97d5a0f

Browse files
Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 359e91c commit 97d5a0f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/web/actions/videos/edit-transcript.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ export async function editTranscriptEntry(
5353
}
5454

5555
const [S3ProviderLayer] = await Effect.gen(function* () {
56-
const s3Buckets = yield* S3Buckets;
57-
return yield* s3Buckets.getProviderForBucket(Option.none());
56+
const buckets = yield* S3Buckets;
57+
return yield* buckets.getProviderForBucket(
58+
Option.fromNullable(result.bucket?.id),
59+
);
5860
}).pipe(runPromise);
59-
6061
try {
6162
const transcriptKey = `${video.ownerId}/${videoId}/transcription.vtt`;
6263

0 commit comments

Comments
 (0)