From 301c1fe23b802916b95736f21b839e3421305008 Mon Sep 17 00:00:00 2001 From: vitJR1 Date: Mon, 26 Aug 2024 21:49:51 +0500 Subject: [PATCH] fix: int for pagination page --- .../utils/default.filter/default.filter.pagination.input.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/utils/default.filter/default.filter.pagination.input.ts b/src/services/utils/default.filter/default.filter.pagination.input.ts index acf64da..d8f57d9 100644 --- a/src/services/utils/default.filter/default.filter.pagination.input.ts +++ b/src/services/utils/default.filter/default.filter.pagination.input.ts @@ -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, { @@ -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, {