chore(api): improve error handling in billing service

This commit is contained in:
isra el
2025-10-13 06:22:52 +03:00
parent a9b1cd6549
commit 500d880aea

View File

@@ -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')