Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
make Video.metadata optional
Brendan Allan85c736dbc5e4
diff --git a/apps/web/app/api/playlist/route.ts b/apps/web/app/api/playlist/route.tsindex 7bbff14d4..237378a3e 100644--- a/apps/web/app/api/playlist/route.ts+++ b/apps/web/app/api/playlist/route.ts@@ -70,17 +70,12 @@ const ApiLive = HttpApiBuilder.api(Api).pipe().pipe(Effect.provide(S3ProviderLayer));}).pipe(provideOptionalAuth,+ Effect.tapErrorCause(Effect.logError),Effect.catchTags({VerifyVideoPasswordError: () => new HttpApiError.Forbidden(),PolicyDenied: () => new HttpApiError.Unauthorized(),- DatabaseError: (e) =>- Effect.logError(e).pipe(- Effect.andThen(() => new HttpApiError.InternalServerError()),- ),- S3Error: (e) =>- Effect.logError(e).pipe(- Effect.andThen(() => new HttpApiError.InternalServerError()),- ),+ DatabaseError: () => new HttpApiError.InternalServerError(),+ S3Error: () => new HttpApiError.InternalServerError(),}),),);diff --git a/packages/web-domain/src/Video.ts b/packages/web-domain/src/Video.tsindex cdb02fc7f..35984d5ad 100644--- a/packages/web-domain/src/Video.ts+++ b/packages/web-domain/src/Video.ts@@ -15,7 +15,9 @@ export class Video extends Schema.Class<Video>("Video")({ownerId: Schema.String,name: Schema.String,public: Schema.Boolean,- metadata: Schema.Record({ key: Schema.String, value: Schema.Any }),+ metadata: Schema.OptionFromNullOr(+ Schema.Record({ key: Schema.String, value: Schema.Any }),+ ),source: Schema.Struct({type: Schema.Literal("MediaConvert", "local", "desktopMP4"),}),