WIP 1.51.10: registration management on v2 (routes, frontend)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
This commit is contained in:
@@ -332,7 +332,7 @@ export default function ReportsV2({ backHref }: { backHref?: string } = {}) {
|
||||
const byEv: Record<string, Registration[]> = {};
|
||||
for (const id of eventIds) {
|
||||
try {
|
||||
const list = await apiFetch<Registration[]>(`/api/registrations/event/${encodeURIComponent(id)}`, { authToken: token });
|
||||
const list = await (apiV2Data("get", "/events/{id}/registrations", { params: { id: id }, authToken: token }) as Promise<Registration[]>);
|
||||
byEv[id] = Array.isArray(list) ? list : [];
|
||||
} catch {
|
||||
byEv[id] = [];
|
||||
|
||||
Reference in New Issue
Block a user