From f3cf63e4bb1c9570bff6633677d546bd2686cf82 Mon Sep 17 00:00:00 2001 From: tresjo81 Date: Fri, 25 Sep 2026 20:57:25 +0000 Subject: [PATCH] fix(bounties): add ParseUUIDPipe validation to repositoryId query param (#356) --- src/bounties/bounties.controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bounties/bounties.controller.ts b/src/bounties/bounties.controller.ts index 752f28d..e23b839 100644 --- a/src/bounties/bounties.controller.ts +++ b/src/bounties/bounties.controller.ts @@ -68,7 +68,11 @@ export class BountiesController { difficulty?: BountyDifficulty, @Query('asset', new ParseEnumPipe(AssetType, { optional: true })) asset?: AssetType, - @Query('repositoryId') repositoryId?: string, + @Query( + 'repositoryId', + new ParseUUIDPipe({ version: '4', optional: true }), + ) + repositoryId?: string, @Query('primaryLanguage') primaryLanguage?: string, ) { return this.bountiesService.list({