From 9ed227e4afa9437e1d5b84ad64fc6194d4b7ea0e Mon Sep 17 00:00:00 2001 From: Matt Cavanagh Date: Wed, 1 Jun 2022 14:16:23 +0100 Subject: [PATCH] Revert change to victories, we want that to be optional so it pulls in all brackets on purpose. --- .../global/rest.aggregate.global.victory.controller.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts b/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts index 0d76536f..7afab51c 100644 --- a/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts +++ b/src/modules/rest/controllers/aggregates/global/rest.aggregate.global.victory.controller.ts @@ -15,7 +15,6 @@ import Range from '../../../../../services/mongo/range'; import {DATE_IMPLICIT_QUERIES} from '../../common/rest.date.query'; import {RedisCacheService} from '../../../../../services/cache/redis.cache.service'; import Pagination from '../../../../../services/mongo/pagination'; -import {MandatoryIntPipe} from '../../../pipes/MandatoryIntPipe'; @ApiTags('Global Victory Aggregates') @Controller('aggregates') @@ -42,7 +41,7 @@ export default class RestGlobalVictoryAggregateController { async findAll( @Query('world', OptionalIntPipe) world?: World, @Query('zone', OptionalIntPipe) zone?: Zone, - @Query('bracket', MandatoryIntPipe) bracket?: Bracket, + @Query('bracket', OptionalIntPipe) bracket?: Bracket, @Query('dateFrom', OptionalDatePipe) dateFrom?: Date | undefined, @Query('dateTo', OptionalDatePipe) dateTo?: Date | undefined, ): Promise {