Skip to content

Commit

Permalink
fix sentry ??
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Nov 13, 2023
1 parent 058ac74 commit 12764e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/@core/sentry/sentry.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Module, DynamicModule, Global, Provider } from '@nestjs/common';
import * as Sentry from '@sentry/node';
import { SentryInterceptor } from './sentry.interceptor';
import config from '../utils/config';
import { APP_INTERCEPTOR } from '@nestjs/core';

@Global()
@Module({})
Expand All @@ -22,7 +23,7 @@ export class SentryModule {

if (distribution === 'managed') {
providers.push({
provide: 'APP_INTERCEPTOR',
provide: APP_INTERCEPTOR,
useClass: SentryInterceptor,
});
}
Expand Down

0 comments on commit 12764e3

Please sign in to comment.