mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
household address: fix POST household address
This commit is contained in:
parent
f39fe05dd5
commit
03a7ec389b
@ -8,7 +8,9 @@
|
|||||||
export const postAddressToHousehold = (householdId, addressId) => {
|
export const postAddressToHousehold = (householdId, addressId) => {
|
||||||
console.log(householdId);
|
console.log(householdId);
|
||||||
console.log(addressId);
|
console.log(addressId);
|
||||||
const body = {'address': addressId};
|
const body = {
|
||||||
|
'id': addressId
|
||||||
|
};
|
||||||
const url = `/api/1.0/person/household/${householdId}/address.json`
|
const url = `/api/1.0/person/household/${householdId}/address.json`
|
||||||
return fetch(url, {
|
return fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user