교육과정 관리 등록
This commit is contained in:
@@ -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] 변환된 강사 데이터:', {
|
||||
|
||||
Reference in New Issue
Block a user