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

@@ -99,7 +99,7 @@ async function processSeatedEvent({
}
async function getDynamicGroupPageProps(context: GetServerSidePropsContext) {
const session = await getServerSession(context);
const session = await getServerSession({ req: context.req });
const { user: usernames, type: slug } = paramsSchema.parse(context.params);
const { rescheduleUid, bookingUid } = context.query;
@@ -195,7 +195,7 @@ async function getDynamicGroupPageProps(context: GetServerSidePropsContext) {
}
async function getUserPageProps(context: GetServerSidePropsContext) {
const session = await getServerSession(context);
const session = await getServerSession({ req: context.req });
const { user: usernames, type: slug } = paramsSchema.parse(context.params);
const username = usernames[0];
const { rescheduleUid, bookingUid } = context.query;