From d4840eab8b350a9e9eb876e41c09eba225d341a4 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 27 Jun 2024 19:47:16 +0200 Subject: [PATCH] Fix : allow services to throw httpException errors --- src/games/services/games.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/games/services/games.service.ts b/src/games/services/games.service.ts index 9ade0cd..8235785 100644 --- a/src/games/services/games.service.ts +++ b/src/games/services/games.service.ts @@ -33,6 +33,9 @@ function WithTransaction( return originalFunc.apply(this, [...args, session]); }) .catch((e) => { + if(e instanceof HttpException){ + throw e + } throw new HttpException( 'Another request is processing', HttpStatus.TOO_MANY_REQUESTS,