Openstatus www.openstatus.dev

fix: monitor test row action

authored by

Maximilian Kaske and committed by
Maximilian Kaske
cb53a507 6ff69266

+2 -2
+2 -2
apps/web/src/components/data-table/monitor/data-table-row-actions.tsx
··· 62 62 // FIXME: improve (similar to the one in the edit form - also include toast.promise + better error message!) 63 63 async function onTest() { 64 64 startTransition(async () => { 65 - const { url, body, method, headers } = monitor; 65 + const { url, body, method, headers, jobType } = monitor; 66 66 67 67 try { 68 - const res = await fetch("/api/checker/test", { 68 + const res = await fetch(`/api/checker/test/${jobType}`, { 69 69 method: "POST", 70 70 headers: new Headers({ 71 71 "Content-Type": "application/json",