diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index 70efe9720..63c94f37a 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -495,13 +495,10 @@ let initPromise = (root) => Promise.all([getScopesPromise(root), accompanyingCou }) }, toggleConfidential({ commit }, payload) { - const url = `/api/1.0/person/accompanying-course/${id}/confidential.json` + const url = `/api/1.0/person/accompanying-course/${id}.json` const body = { type: "accompanying_period", confidential: payload } - console.log('url', url) - console.log('body', body) - - return makeFetch('POST', url, body) + return makeFetch('PATCH', url, body) .then((response) => { commit('toggleConfidential', response); })