Skip to content

Commit

Permalink
Merge pull request #680 from irwansyahwii/fix/limit-query
Browse files Browse the repository at this point in the history
fix: limit query param to use the correct int type instead of string
  • Loading branch information
naelob authored Aug 30, 2024
2 parents 1b143b0 + ff9e4a6 commit 94601f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/api/src/ats/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
Param,
Headers,
UseGuards,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { LoggerService } from '@@core/@core-services/logger/logger.service';
import {
Expand Down Expand Up @@ -57,6 +59,12 @@ export class UserController {
@ApiPaginatedResponse(UnifiedAtsUserOutput)
@UseGuards(ApiKeyAuthGuard)
@Get()
@UsePipes(
new ValidationPipe({
transform: true,
transformOptions: { enableImplicitConversion: true },
}),
)
async getUsers(
@Headers('x-connection-token') connection_token: string,
@Query() query: QueryDto,
Expand Down

0 comments on commit 94601f6

Please sign in to comment.