Merge remote-tracking branch 'origin/master' into agent/s4-11-marking-results
# Conflicts: # src/AppRoutes.tsx # src/pages/exam/index.ts # src/services/exam/examRepository.ts # src/types/exam.types.ts
This commit is contained in:
@@ -198,7 +198,7 @@ const ClassDetailPage: React.FC = () => {
|
||||
|
||||
const handleEnrollmentResponse = async (requestId: string, action: 'approve' | 'reject') => {
|
||||
setActionError(null);
|
||||
const res = await apiPost(`/database/timetable/enrollment-requests/${requestId}/respond`, { status: action === 'approve' ? 'approved' : 'rejected' });
|
||||
const res = await apiPatch(`/database/timetable/classes/${classId}/enrollment-requests/${requestId}`, { action });
|
||||
if (res.status === 'ok') load();
|
||||
else setActionError(res.detail || 'Action failed');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user