Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jun 8, 2024
1 parent 9458028 commit 712450a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { env } from '@/env';
import { appRouter } from '@/server';
import { createTRPCContext } from '@/server/trpc';

const createContext = async (req: NextRequest) => {
const createContext = (req: NextRequest) => {
return createTRPCContext({
headers: req.headers,
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/trpc/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { headers } from 'next/headers';
import { createCaller } from '@/server';
import { createTRPCContext } from '@/server/trpc';

const createContext = cache(async () => {
const createContext = cache(() => {
const heads = new Headers(headers());
heads.set('x-trpc-source', 'rsc');

Expand Down

0 comments on commit 712450a

Please sign in to comment.