Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman committed Feb 10, 2024
1 parent 98650d0 commit 4085048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/trpc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TRPCError, initTRPC } from '@trpc/server';
import * as trpcExpress from '@trpc/server/adapters/express';
import type * as trpcExpress from '@trpc/server/adapters/express';
import { getUserByTokenService } from './services/user/getUserByToken';

const t = initTRPC.create();
Expand Down Expand Up @@ -55,7 +55,7 @@ export const publicProcedure = t.procedure;
/**
* Authentication middleware
*/
const isAuthenticated = t.middleware((opts) => {
const isAuthenticated = t.middleware(async (opts) => {
const { ctx, next } = opts;

if (!ctx.user) {
Expand Down

0 comments on commit 4085048

Please sign in to comment.