household address: post address to household (WIP)

This commit is contained in:
nobohan
2021-06-04 16:23:13 +02:00
parent aff140230c
commit d513be2fce
4 changed files with 20 additions and 15 deletions

View File

@@ -44,7 +44,7 @@ const store = createStore({
addAddressToHousehold({ commit }, payload) {
console.log('@A addAddressToHousehold payload', payload);
postAddressToHousehold(payload)
postAddressToHousehold(payload.householdId, payload.address)
.then(household => new Promise((resolve, reject) => {
commit('addAddressToHousehold', household);
resolve();