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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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