mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 21:57:56 +00:00
Fix ExceptionHandler requiring httpAdapter (#3021)
This commit is contained in:
@@ -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(),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user