Skip to content

Commit

Permalink
fix: allow proper maximum amount for getAllPokemonSpecies
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Mar 6, 2022
1 parent 3aac8ac commit 397abf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions __tests__/scenarios/pokemon/getAllPokemonSpecies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ describe('getAllPokemonSpecies', () => {
'Arceus-rock',
'Arceus-steel',
'Arceus-water',
'Arceus-legend',
'Victini',
'Snivy',
'Servine',
Expand Down
6 changes: 3 additions & 3 deletions src/arguments/PokemonArgs/PokemonListArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { ArgsType, Field, Int } from 'type-graphql';
export class PokemonListArgs extends BaseFuzzyArgs {
@Field(() => Int, {
nullable: true,
defaultValue: 1271,
defaultValue: 1272,
description: 'Return only this many results, starting from the offset'
})
@IsNumber()
@Min(1)
@Max(1271)
public take = 1271;
@Max(1272)
public take = 1272;
}

0 comments on commit 397abf1

Please sign in to comment.