From 2f612e5592ab77733dcfc56bccf4f1afe952310c Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Sun, 1 Aug 2021 12:03:08 +0300 Subject: [PATCH] Cannot add comment - 404 closes https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/285 --- src/services/testRun.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }