Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
fix: int for pagination page
Browse files Browse the repository at this point in the history
  • Loading branch information
vitJR1 committed Aug 26, 2024
1 parent 6ffcf25 commit 301c1fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field, InputType, registerEnumType } from '@nestjs/graphql';
import { Field, InputType, Int, registerEnumType } from '@nestjs/graphql';
import { FilterPaginationLengthEnum } from '@pieceowater-dev/lotof.lib.broadcaster/utils/filter/pagination.filter';

registerEnumType(FilterPaginationLengthEnum, {
Expand All @@ -7,7 +7,7 @@ registerEnumType(FilterPaginationLengthEnum, {

@InputType()
export class DefaultFilterPaginationInput {
@Field({ nullable: true, defaultValue: 1 })
@Field(() => Int, { nullable: true, defaultValue: 1 })
page: number;

@Field(() => FilterPaginationLengthEnum, {
Expand Down

0 comments on commit 301c1fe

Please sign in to comment.