diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index d71fc59aa..bf22c41d2 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -146,25 +146,25 @@ async function getVoteDetail(id) { } } -async function updateVote(id, updatedData) { - try { - const response = await axiosApiInstance.put(`/api/vote/votedetail/${id}/`, updatedData); - return response.data; - } catch (error) { - console.error("Ошибка обновления голосования:", error); - throw error; - } -} +// async function updateVote(id, updatedData) { +// try { +// const response = await axiosApiInstance.put(`/api/vote/votedetail/${id}/`, updatedData); +// return response.data; +// } catch (error) { +// console.error("Ошибка обновления голосования:", error); +// throw error; +// } +// } -async function patchVote(id, partialData) { - try { - const response = await axiosApiInstance.patch(`/api/vote/votedetail/${id}/`, partialData); - return response.data; - } catch (error) { - console.error("Ошибка частичного обновления голосования:", error); - throw error; - } -} +// async function patchVote(id, partialData) { +// try { +// const response = await axiosApiInstance.patch(`/api/vote/votedetail/${id}/`, partialData); +// return response.data; +// } catch (error) { +// console.error("Ошибка частичного обновления голосования:", error); +// throw error; +// } +// } async function deleteVote(id) { try { @@ -207,8 +207,8 @@ export { getVotes, createVote, getVoteDetail, - updateVote, - patchVote, + // updateVote, + // patchVote, deleteVote, getEmployees, getVoteResult,