fix: getSession to getDbSession to avoid h3 conflict
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getClientIp } from '../../utils/ip'
|
||||
import { getSession, deleteSession, getSessionIdFromCookie, deleteSessionCookie } from '../../utils/session'
|
||||
import { getDbSession, deleteSession, getSessionIdFromCookie, deleteSessionCookie } from '../../utils/session'
|
||||
|
||||
/**
|
||||
* 로그아웃
|
||||
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
if (sessionId) {
|
||||
// 세션 정보 조회
|
||||
const session = await getSession(sessionId)
|
||||
const session = await getDbSession(sessionId)
|
||||
|
||||
// 로그아웃 이력 기록
|
||||
if (session?.loginHistoryId) {
|
||||
|
||||
Reference in New Issue
Block a user