File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
apps/web/app/api/playlist Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,12 @@ const ApiLive = HttpApiBuilder.api(Api).pipe(
70
70
) . pipe ( Effect . provide ( S3ProviderLayer ) ) ;
71
71
} ) . pipe (
72
72
provideOptionalAuth ,
73
+ Effect . tapErrorCause ( Effect . logError ) ,
73
74
Effect . catchTags ( {
74
75
VerifyVideoPasswordError : ( ) => new HttpApiError . Forbidden ( ) ,
75
76
PolicyDenied : ( ) => new HttpApiError . Unauthorized ( ) ,
76
- DatabaseError : ( e ) =>
77
- Effect . logError ( e ) . pipe (
78
- Effect . andThen ( ( ) => new HttpApiError . InternalServerError ( ) ) ,
79
- ) ,
80
- S3Error : ( e ) =>
81
- Effect . logError ( e ) . pipe (
82
- Effect . andThen ( ( ) => new HttpApiError . InternalServerError ( ) ) ,
83
- ) ,
77
+ DatabaseError : ( ) => new HttpApiError . InternalServerError ( ) ,
78
+ S3Error : ( ) => new HttpApiError . InternalServerError ( ) ,
84
79
} ) ,
85
80
) ,
86
81
) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ export class Video extends Schema.Class<Video>("Video")({
15
15
ownerId : Schema . String ,
16
16
name : Schema . String ,
17
17
public : Schema . Boolean ,
18
- metadata : Schema . Record ( { key : Schema . String , value : Schema . Any } ) ,
18
+ metadata : Schema . OptionFromNullOr (
19
+ Schema . Record ( { key : Schema . String , value : Schema . Any } ) ,
20
+ ) ,
19
21
source : Schema . Struct ( {
20
22
type : Schema . Literal ( "MediaConvert" , "local" , "desktopMP4" ) ,
21
23
} ) ,
You can’t perform that action at this time.
0 commit comments