Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web-backend): map storage integration ids in VideosRepo

Richie McIlroy0def2ca1f253
diff --git a/packages/web-backend/src/Videos/VideosRepo.ts b/packages/web-backend/src/Videos/VideosRepo.ts
index 991114e71..17dec55dd 100644
--- a/packages/web-backend/src/Videos/VideosRepo.ts
+++ b/packages/web-backend/src/Videos/VideosRepo.ts
@@ -34,6 +34,7 @@ export class VideosRepo extends Effect.Service<VideosRepo>()("VideosRepo", {
Video.Video.decodeSync({
...v,
bucketId: v.bucket,
+ storageIntegrationId: v.storageIntegrationId,
createdAt: v.createdAt.toISOString(),
updatedAt: v.updatedAt.toISOString(),
metadata: v.metadata as any,
@@ -70,6 +71,9 @@ export class VideosRepo extends Effect.Service<VideosRepo>()("VideosRepo", {
id,
orgId: data.orgId,
bucket: Option.getOrNull(data.bucketId ?? Option.none()),
+ storageIntegrationId: Option.getOrNull(
+ data.storageIntegrationId ?? Option.none(),
+ ),
metadata: Option.getOrNull(data.metadata ?? Option.none()),
transcriptionStatus: Option.getOrNull(
data.transcriptionStatus ?? Option.none(),