Fix ExceptionHandler requiring httpAdapter (#3021)

This commit is contained in:
Charles Bochet
2023-12-15 16:07:35 +01:00
committed by GitHub
parent 064e47b59a
commit 3659f12fba
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export const exceptionHandlerModuleFactory = async (
type: ExceptionHandlerDriver.Sentry, type: ExceptionHandlerDriver.Sentry,
options: { options: {
dns: environmentService.getSentryDSN() ?? '', dns: environmentService.getSentryDSN() ?? '',
serverInstance: adapterHost.httpAdapter.getInstance(), serverInstance: adapterHost.httpAdapter?.getInstance(),
debug: environmentService.isDebugMode(), debug: environmentService.isDebugMode(),
}, },
}; };

View File

@@ -9,7 +9,7 @@ export interface ExceptionHandlerSentryDriverFactoryOptions {
type: ExceptionHandlerDriver.Sentry; type: ExceptionHandlerDriver.Sentry;
options: { options: {
dns: string; dns: string;
serverInstance: Router; serverInstance?: Router;
debug?: boolean; debug?: boolean;
}; };
} }