chore: tech debt clearing - getServerSession has a dead arg: res (#19053)

* remove res from arg list in getServerSession

* remove res from all usages of getServerSession
This commit is contained in:
Benny Joo authored and GitHub committed 2025-02-03 00:12:42 -05:00
1 parent 15d6839985
commit f0dc3bba17
29 files changed
+42 -45

No files matched your search

@@ -85,9 +85,9 @@ export async function getUserFromSession(ctx: TRPCContextInner, session: Maybe<S
export type UserFromSession = Awaited<ReturnType<typeof getUserFromSession>>;
const getSession = async (ctx: TRPCContextInner) => {
const { req, res } = ctx;
const { req } = ctx;
const { getServerSession } = await import("@calcom/features/auth/lib/getServerSession");
return req ? await getServerSession({ req, res }) : null;
return req ? await getServerSession({ req }) : null;
};
export const getUserSession = async (ctx: TRPCContextInner) => {