Skip to content

Commit 73c2be4

Browse files
author
Luca Forstner
authored
fix(node): Make trpcMiddleware factory synchronous (#7802)
1 parent 5062ce1 commit 73c2be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ interface TrpcMiddlewareArguments<T> {
337337
* Use the Sentry tRPC middleware in combination with the Sentry server integration,
338338
* e.g. Express Request Handlers or Next.js SDK.
339339
*/
340-
export async function trpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
340+
export function trpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
341341
return function <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>): T {
342342
const hub = getCurrentHub();
343343
const clientOptions = hub.getClient()?.getOptions();

0 commit comments

Comments
 (0)