mirror of
https://github.com/vernu/textbee.git
synced 2026-05-25 00:44:15 -04:00
chore(api): improve error handling in billing service
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user