fix: getSession to getDbSession to avoid h3 conflict

This commit is contained in:
2026-01-10 14:49:34 +09:00
parent 29c2056f12
commit 2be9bb66d3
5 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { getSession, getSessionIdFromCookie, deleteSessionCookie, SESSION_TIMEOUT_MINUTES } from '../../utils/session'
import { getDbSession, getSessionIdFromCookie, deleteSessionCookie, SESSION_TIMEOUT_MINUTES } from '../../utils/session'
/**
* 본인 로그인 이력 조회
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
throw createError({ statusCode: 401, message: '로그인이 필요합니다.' })
}
const session = await getSession(sessionId)
const session = await getDbSession(sessionId)
if (!session) {
deleteSessionCookie(event)