Skip to content

Commit

Permalink
removing some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
psachmann committed Feb 3, 2025
1 parent 46fd501 commit c7a282f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 28 deletions.
36 changes: 18 additions & 18 deletions apps/server/src/modules/board/controller/board.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,24 +134,24 @@ export class BoardController {
return response;
}

// @ApiOperation({ summary: 'Create multiple columns on a board.' })
// @ApiResponse({ status: 201, type: [ColumnResponse] })
// @ApiResponse({ status: 400, type: ApiValidationError })
// @ApiResponse({ status: 403, type: ForbiddenException })
// @ApiResponse({ status: 404, type: NotFoundException })
// @HttpCode(HttpStatus.CREATED)
// @Post(':boardId/columns/bulk')
// public async createColumns(
// @Param() urlParams: BoardUrlParams,
// @Body() bodyParams: CreateColumnBodyParams,
// @CurrentUser() currentUser: ICurrentUser
// ): Promise<ColumnResponse[]> {
// const columns = await this.boardUc.createColumns(currentUser.userId, urlParams.boardId, bodyParams.titles);

// const response = columns.map((column) => ColumnResponseMapper.mapToResponse(column));

// return response;
// }
@ApiOperation({ summary: 'Create multiple columns on a board.' })
@ApiResponse({ status: 201, type: [ColumnResponse] })
@ApiResponse({ status: 400, type: ApiValidationError })
@ApiResponse({ status: 403, type: ForbiddenException })
@ApiResponse({ status: 404, type: NotFoundException })
@HttpCode(HttpStatus.CREATED)
@Post(':boardId/columns/bulk')
public async createColumns(
@Param() urlParams: BoardUrlParams,
@Body() bodyParams: CreateColumnBodyParams,
@CurrentUser() currentUser: ICurrentUser
): Promise<ColumnResponse[]> {
const columns = await this.boardUc.createColumns(currentUser.userId, urlParams.boardId, bodyParams.titles);

const response = columns.map((column) => ColumnResponseMapper.mapToResponse(column));

return response;
}

@ApiOperation({ summary: 'Create a board copy.' })
@ApiResponse({ status: 201, type: CopyApiResponse })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ export class BoardUrlParams {
required: true,
nullable: false,
})
public boardId: string;

constructor(props: Readonly<BoardUrlParams>) {
this.boardId = props.boardId;
}
public boardId!: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@ export class CreateColumnBodyParams {
required: true,
nullable: false,
})
public titles: string[];

constructor(props: Readonly<CreateColumnBodyParams>) {
this.titles = props.titles;
}
public titles!: string[];
}

0 comments on commit c7a282f

Please sign in to comment.