작업계획서대로 진행
This commit is contained in:
@@ -2,6 +2,13 @@ import type { H3Event } from 'h3'
|
||||
import { queryOne } from './db'
|
||||
import { getAuthenticatedUserId } from './session'
|
||||
|
||||
/**
|
||||
* 현재 로그인한 사용자의 ID 조회
|
||||
*/
|
||||
export async function getCurrentUserId(event: H3Event): Promise<number | null> {
|
||||
return await getAuthenticatedUserId(event)
|
||||
}
|
||||
|
||||
/**
|
||||
* 현재 로그인한 사용자의 이메일 조회
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user