mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-27 11:03:40 +03:00
Fix ExceptionHandler requiring httpAdapter (#3021)
This commit is contained in:
parent
064e47b59a
commit
3659f12fba
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user