Skip to content

Commit

Permalink
N21-1935 enum + response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed May 15, 2024
1 parent 3615372 commit 437730f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class MediaBoardResponse {
timestamps: TimestampsResponse;

@ApiProperty({
enum: MediaBoardLayoutType,
description: 'Layout of media board',
})
layout: MediaBoardLayoutType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ export class MediaLineResponse {
@ApiProperty({ description: 'The background color of the media line' })
backgroundColor: string;

@ApiProperty({ description: 'Collapse the media line' })
collapsed: boolean;

constructor(props: MediaLineResponse) {
this.id = props.id;
this.title = props.title;
this.elements = props.elements;
this.timestamps = props.timestamps;
this.backgroundColor = props.backgroundColor;
this.collapsed = props.collapsed;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class MediaLineResponseMapper {
createdAt: line.createdAt,
}),
backgroundColor: line.backgroundColor,
collapsed: line.collapsed,
});

return lineResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class MediaLineController {
@ApiNotFoundResponse({ type: NotFoundException })
@HttpCode(HttpStatus.NO_CONTENT)
@Patch(':lineId/collapse')
public async collapsMediaLine(
public async collapseMediaLine(
@Param() urlParams: BoardUrlParams,
@Body() bodyParams: CollapsableBodyParams,
@CurrentUser() currentUser: ICurrentUser
Expand Down

0 comments on commit 437730f

Please sign in to comment.