diff --git a/app/api/src/games/games.service.ts b/app/api/src/games/games.service.ts index aae86f5..5b11809 100644 --- a/app/api/src/games/games.service.ts +++ b/app/api/src/games/games.service.ts @@ -36,7 +36,7 @@ export class GamesService { gameId: 'DESC' } }); - if (!game) { + if (!game.length) { throw new NotFoundException(`Game Type: ${gametype} not found`); } return game;