mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(auth): handle null session and user with TypeScript ignore
This commit is contained in:
parent
d7c94174b9
commit
43599e7a97
@ -80,12 +80,14 @@ export const createTRPCContext = async (opts: CreateNextContextOptions) => {
|
||||
return createInnerTRPCContext({
|
||||
req,
|
||||
res,
|
||||
// @ts-ignore
|
||||
session: session
|
||||
? {
|
||||
...session,
|
||||
activeOrganizationId: session.activeOrganizationId || "",
|
||||
}
|
||||
: null,
|
||||
// @ts-ignore
|
||||
user: user
|
||||
? {
|
||||
...user,
|
||||
|
Loading…
Reference in New Issue
Block a user