Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web-recorder): use authenticated user id for raw file key

ManthanNimodiya724644fa0cad
diff --git a/apps/web/actions/video/trigger-instant-recording-processing.ts b/apps/web/actions/video/trigger-instant-recording-processing.ts
index 6edbae856..ce117d11a 100644
--- a/apps/web/actions/video/trigger-instant-recording-processing.ts
+++ b/apps/web/actions/video/trigger-instant-recording-processing.ts
@@ -23,7 +23,7 @@ export async function triggerInstantRecordingProcessing({
if (!video) throw new Error("Video not found");
if (video.ownerId !== user.id) throw new Error("Unauthorized");
- const rawFileKey = `${video.ownerId}/${videoId}/result.mp4`;
+ const rawFileKey = `${user.id}/${videoId}/result.mp4`;
await startVideoProcessingWorkflow({
videoId,