From 8c3a231217b5796b43c0c301e995878fbaa54faf Mon Sep 17 00:00:00 2001 From: yuval ovadia Date: Mon, 28 Jul 2025 20:23:03 +0300 Subject: [PATCH] deleted exceptions --- backend/src/games/games.service.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/backend/src/games/games.service.ts b/backend/src/games/games.service.ts index 716bcb0e..41f12cd5 100644 --- a/backend/src/games/games.service.ts +++ b/backend/src/games/games.service.ts @@ -281,10 +281,6 @@ export class GamesService { order: { startDate: 'ASC' }, }); - if (!games) { - throw new NotFoundException(`No games found for field: ${fieldId}`); - } - return games; } @@ -298,10 +294,6 @@ export class GamesService { order: { startDate: 'ASC' }, }); - if (!games) { - throw new NotFoundException(`No games found for field: ${fieldId}`); - } - return games; } @@ -315,9 +307,7 @@ export class GamesService { status: GameStatus.APPROVED, }, }); - if (!games) { - throw new NotFoundException(`No games found for field: ${fieldId}`); - } + return games; }