[fix] negodata: /me 응답 role 을 UserRole enum 으로 직렬화 (Pydantic 경고 제거)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-07-01 14:41:39 +09:00
1 parent f19c6f57ea
commit 78bef0f5f9
1 file changed
+2 -2
+2 -2
View File
@@ -4,7 +4,7 @@ from fastapi import Depends
from common.database.db_session_manager import DB_SESSION_MNG
from common.database.model.models import users
from common.enums import DBWRType, ErrorType, UserStatus
from common.enums import DBWRType, ErrorType, UserRole, UserStatus
from common.logger import LOG
from common.models.gmodel import UserInfo
from crud.user_crud import IUserCRUD, UserCRUD
@@ -112,7 +112,7 @@ class AuthService:
res.name = user.name
res.email = user.email
res.contact_number = user.contact_number
res.role = user.role
res.role = UserRole(user.role)
res.company = company
return res