Skip to content

Commit

Permalink
fix: minor typo in createBunServeHandler.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFA11 authored and cah4a committed Aug 28, 2024
1 parent 5452216 commit 4de96b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/createBunServeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export function createBunServeHandler<TRouter extends AnyRouter>(
return {
...serveOptions,
async fetch(req: Request, server: Server) {
const trpcReponse = trpcHandler(req, server);
const trpcResponse = trpcHandler(req, server);

if (trpcReponse) {
return trpcReponse;
if (trpcResponse) {
return trpcResponse;
}

return serveOptions?.fetch?.call(server, req, server);
Expand Down

0 comments on commit 4de96b7

Please sign in to comment.