Fix issues with _lastEventId errors reported to Sentry (#2809)

This commit is contained in:
Dotan Simha 2023-09-11 09:22:49 +01:00 committed by GitHub
parent ac6d63fd85
commit 1f264489ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ const handler: ExportedHandler<Env> = {
});
try {
return await router.handle(request, sentry.captureException).then(response => {
return await router.handle(request, sentry.captureException.bind(sentry)).then(response => {
if (response) {
return response;
}