교육과정 관리 등록

This commit is contained in:
2025-11-27 21:31:18 +09:00
parent b1e2f6012c
commit 0963cfdf5b
5 changed files with 545 additions and 185 deletions

View File

@@ -26,9 +26,9 @@ export async function getInstructors(): Promise<UserRow[]> {
? `${process.env.NEXT_PUBLIC_API_BASE_URL}/admin/users/compact`
: 'https://hrdi.coconutmeet.net/admin/users/compact';
// 쿼리 파라미터 추가: type=STUDENT, limit=10
// 쿼리 파라미터 추가: type=ADMIN, limit=10
const apiUrl = new URL(baseUrl);
apiUrl.searchParams.set('type', 'STUDENT');
apiUrl.searchParams.set('type', 'ADMIN');
apiUrl.searchParams.set('limit', '10');
console.log('🔍 [getInstructors] API 호출 정보:', {
@@ -110,7 +110,7 @@ export async function getInstructors(): Promise<UserRow[]> {
return transformed;
})
.filter((user: UserRow) => user.role === 'instructor' && user.status === 'active')
.filter((user: UserRow) => user.role === 'admin' && user.status === 'active')
: [];
console.log('✅ [getInstructors] 변환된 강사 데이터:', {