diff --git a/src/services/testRun.service.ts b/src/services/testRun.service.ts index c013b946..d57349a5 100644 --- a/src/services/testRun.service.ts +++ b/src/services/testRun.service.ts @@ -85,12 +85,12 @@ async function addIgnoreAreas(data: UpdateIgnoreAreaDto): Promise { async function update(id: string, data: { comment: string }): Promise { const requestOptions = { - method: "PUT", + method: "PATCH", headers: { "Content-Type": "application/json", ...authHeader() }, body: JSON.stringify(data), }; - return fetch(`${API_URL}${ENDPOINT_URL}/comment/${id}`, requestOptions).then( + return fetch(`${API_URL}${ENDPOINT_URL}/update/${id}`, requestOptions).then( handleResponse ); }