From 1eb8d04a329d05248b86b4c9bd35b36d605f68a1 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Thu, 30 Sep 2021 13:23:11 +0200 Subject: [PATCH] fix property into json body with endpoint PATCH thirdparty --- .../Resources/public/vuejs/AccompanyingCourse/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 22c91b0ef..ca1a89aa9 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -293,7 +293,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) body.name = payload.data.text; body.email = payload.data.email; body.telephone = payload.data.phonenumber; - body.address = { address_id: payload.data.address.address_id }; + body.address = { id: payload.data.address.address_id }; console.log('id', payload.data.id, 'and body', body); patchThirdparty(payload.data.id, body) .then(thirdparty => new Promise((resolve, reject) => {