Fix : allow services to throw httpException errors
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user