From 500d880aeaf478e89186ef9705311b880fa03750 Mon Sep 17 00:00:00 2001 From: isra el Date: Mon, 13 Oct 2025 06:22:52 +0300 Subject: [PATCH] chore(api): improve error handling in billing service --- api/src/billing/billing.service.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/src/billing/billing.service.ts b/api/src/billing/billing.service.ts index c1f804f..cf68e76 100644 --- a/api/src/billing/billing.service.ts +++ b/api/src/billing/billing.service.ts @@ -477,10 +477,7 @@ export class BillingService { return true } catch (error) { - if ( - error instanceof HttpException && - error.getStatus() === HttpStatus.TOO_MANY_REQUESTS - ) { + if (error instanceof HttpException) { throw error } console.error('canPerformAction: Exception in canPerformAction')