Skip to content

Commit

Permalink
Merge pull request #133 from Trycatch-tv/dev
Browse files Browse the repository at this point in the history
fix: findOneBootcamp
  • Loading branch information
judlup authored Oct 24, 2024
2 parents abf42c2 + 214cfdc commit d0f00db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/bootcamps/bootcamps.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export class BootcampsController {
type: [FindOneBootcampsResponse],
})
@Get('/:id')
async findOne(id: string): Promise<FindOneBootcampsResponse> {
async findOne(
@Param('id', ParseUUIDPipe) id: string,
): Promise<FindOneBootcampsResponse> {
try {
return await this.bootcampsService.findOne(id);
} catch (error) {
Expand Down

0 comments on commit d0f00db

Please sign in to comment.