From 7cb94a7feffb6900b2ef074bf898c58b5ed56843 Mon Sep 17 00:00:00 2001 From: wooktori Date: Sat, 3 Jan 2026 22:33:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BF=A0=ED=82=A4=20userId=20=EB=8C=80?= =?UTF-8?q?=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/message/chat/[roomId]/page.tsx | 6 +++++- src/app/message/page.tsx | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/message/chat/[roomId]/page.tsx b/src/app/message/chat/[roomId]/page.tsx index 246e8773..e9dcb856 100644 --- a/src/app/message/chat/[roomId]/page.tsx +++ b/src/app/message/chat/[roomId]/page.tsx @@ -1,12 +1,16 @@ import { cookies } from 'next/headers'; +import { API } from '@/api'; + import ChatRoomPage from './ChatRoomPage'; export default async function Page({ params }: { params: Promise<{ roomId: string }> }) { const resolvedParams = await params; const cookieStore = await cookies(); const accessToken = cookieStore.get('accessToken')?.value; - const userId = Number(cookieStore.get('userId')?.value || 0); + + const me = await API.userService.getMeSkipRedirect(); + const userId = me.userId; return (