diff --git a/dashboards/admin-web/src/app/(dashboard)/delivery/page.tsx b/dashboards/admin-web/src/app/(dashboard)/delivery/page.tsx index 48ba094e..0af8e249 100644 --- a/dashboards/admin-web/src/app/(dashboard)/delivery/page.tsx +++ b/dashboards/admin-web/src/app/(dashboard)/delivery/page.tsx @@ -24,6 +24,7 @@ import { interface DeliveryEntry { id: string; + pk: string; template: string; recipient: string; channel: string; @@ -71,8 +72,10 @@ export default function DeliveryPage() { void loadData(); }, [loadData]); - async function handleRetry(id: string) { - await apiFetch(`logs/${id}/retry`, { method: 'POST' }); + async function handleRetry(entry: DeliveryEntry) { + await apiFetch(`logs/${entry.id}/retry?pk=${encodeURIComponent(entry.pk)}`, { + method: 'POST', + }); loadData(); } @@ -191,7 +194,7 @@ export default function DeliveryPage() { {e.status === 'failed' && (