From 12764e34c53c6f3c6f1122640713ba7f37260eed Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 13 Nov 2023 22:49:49 +0100 Subject: [PATCH] fix sentry ?? --- packages/api/src/@core/sentry/sentry.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api/src/@core/sentry/sentry.module.ts b/packages/api/src/@core/sentry/sentry.module.ts index c6f113e30..fd5e15307 100644 --- a/packages/api/src/@core/sentry/sentry.module.ts +++ b/packages/api/src/@core/sentry/sentry.module.ts @@ -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({}) @@ -22,7 +23,7 @@ export class SentryModule { if (distribution === 'managed') { providers.push({ - provide: 'APP_INTERCEPTOR', + provide: APP_INTERCEPTOR, useClass: SentryInterceptor, }); }