diff --git a/packages/client/src/app/jobs/executeJobModal.tsx b/packages/client/src/app/jobs/executeJobModal.tsx index 3064289..44807f1 100644 --- a/packages/client/src/app/jobs/executeJobModal.tsx +++ b/packages/client/src/app/jobs/executeJobModal.tsx @@ -18,7 +18,7 @@ export const ExecuteJobModal = ({ closeModal, devices, jobId }: ExecuteJobModalP const promise = fetch(`/api/job/execute/${jobId}`, { method: 'POST', headers: { - 'Content-Type': 'application/json', // Set the Content-Type header to application/json + 'Content-Type': 'application/json', // fastify is only able to parse the body to a project with this header }, body: JSON.stringify({ deviceIdsOrOrigins: deviceIds }), }).then(async (response) => {