mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 13:17:57 +00:00
Fix ExceptionHandler requiring httpAdapter (#3021)
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ export interface ExceptionHandlerSentryDriverFactoryOptions {
|
||||
type: ExceptionHandlerDriver.Sentry;
|
||||
options: {
|
||||
dns: string;
|
||||
serverInstance: Router;
|
||||
serverInstance?: Router;
|
||||
debug?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user