Skip to content

Commit 4613397

Browse files
committed
Swap interface for common
1 parent 1286e9d commit 4613397

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/core/exception/exception.filter.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import { ArgumentsHost, Catch, HttpStatus, Injectable } from '@nestjs/common';
2-
import { GqlExceptionFilter } from '@nestjs/graphql';
1+
import {
2+
ArgumentsHost,
3+
Catch,
4+
HttpStatus,
5+
ExceptionFilter as IExceptionFilter,
6+
Injectable,
7+
} from '@nestjs/common';
38
import { mapValues } from '@seedcompany/common';
49
import { HttpAdapter } from '~/core/http';
510
import { ConfigService } from '../config/config.service';
@@ -10,7 +15,7 @@ import { isFromHackAttempt } from './is-from-hack-attempt';
1015

1116
@Catch()
1217
@Injectable()
13-
export class ExceptionFilter implements GqlExceptionFilter {
18+
export class ExceptionFilter implements IExceptionFilter {
1419
constructor(
1520
private readonly http: HttpAdapter,
1621
@Logger('nest') private readonly logger: ILogger,

0 commit comments

Comments
 (0)