Browse Source

refactor: better naming

pull/6718/head
Pranav C 1 year ago
parent
commit
84d4eb5bec
  1. 4
      packages/nocodb/src/filters/global-exception/global-exception.filter.ts

4
packages/nocodb/src/filters/global-exception/global-exception.filter.ts

@ -18,7 +18,7 @@ import {
@Catch()
export class GlobalExceptionFilter implements ExceptionFilter {
constructor(
@Optional() @InjectSentry() private readonly client: SentryService,
@Optional() @InjectSentry() private readonly sentryClient: SentryService,
) {}
private logger = new Logger(GlobalExceptionFilter.name);
@ -106,7 +106,7 @@ export class GlobalExceptionFilter implements ExceptionFilter {
if (exception.getStatus?.()) {
response.status(exception.getStatus()).json(exception.getResponse());
} else {
this.client?.instance().captureException(exception);
this.sentryClient?.instance().captureException(exception);
// todo: change the response code
response.status(400).json({

Loading…
Cancel
Save