Skip to content

Commit

Permalink
fix: update interceptor return type
Browse files Browse the repository at this point in the history
  • Loading branch information
RabahZeineddine committed Jan 26, 2023
1 parent 7024517 commit 62b0364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interceptors/PrismaRA/PrismaRA.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class PrismaRAInterceptor implements NestInterceptor {
this.logger = new Logger(PrismaRAInterceptor.name);
}

intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
intercept(context: ExecutionContext, next: CallHandler): Observable<any> | Promise<Observable<any>> {
const request = context.switchToHttp().getRequest();

if (request?.headers?.[this.options.headerIdentifier]) {
Expand Down

0 comments on commit 62b0364

Please sign in to comment.