piccola roba
This commit is contained in:
parent
90e05c5989
commit
f979fd9721
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ export const authRouter = createTRPCRouter({
|
|||
}),
|
||||
|
||||
getSession: publicProcedure.query(async ({ ctx }) => {
|
||||
if (!ctx.session || ctx.session.isBlocked) return null;
|
||||
if (ctx.session?.isBlocked) return null;
|
||||
return ctx.session;
|
||||
}),
|
||||
addUserAdmin: adminProcedure
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue