Skip to content

Commit

Permalink
fix(node): Make trpcMiddleware factory synchronous (#7802)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Apr 11, 2023
1 parent 5062ce1 commit 73c2be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ interface TrpcMiddlewareArguments<T> {
* Use the Sentry tRPC middleware in combination with the Sentry server integration,
* e.g. Express Request Handlers or Next.js SDK.
*/
export async function trpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
export function trpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
return function <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>): T {
const hub = getCurrentHub();
const clientOptions = hub.getClient()?.getOptions();
Expand Down

0 comments on commit 73c2be4

Please sign in to comment.