From 50d2ca984730e4b1cb4b48dc79fb579ec828addc Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Mon, 11 Jun 2018 23:11:25 -0300 Subject: [PATCH] refactoring exposer-map to exposer_map in actions --- src/js/store/modules/collection/actions.js | 2 +- src/js/store/modules/fields/actions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/store/modules/collection/actions.js b/src/js/store/modules/collection/actions.js index 8c716596a..624f1b45b 100644 --- a/src/js/store/modules/collection/actions.js +++ b/src/js/store/modules/collection/actions.js @@ -180,7 +180,7 @@ export const sendCollection = ( { commit }, { name, description, status, mapper name: name, description: description, status: status, - 'exposer_map': mapper + exposer_map: mapper }) .then( res => { commit('setCollection', { name: name, description: description, status: status, mapper: mapper }); diff --git a/src/js/store/modules/fields/actions.js b/src/js/store/modules/fields/actions.js index 779730f83..f09e4188d 100644 --- a/src/js/store/modules/fields/actions.js +++ b/src/js/store/modules/fields/actions.js @@ -145,11 +145,11 @@ export const fetchFieldMappers = ({commit}) => { }); } -export const updateFieldsMapperMetadata = ({ dispatch }, fieldsMapperMetadata, mapper) => { +export const updateFieldsMapperMetadata = ({ dispatch }, {fieldsMapperMetadata, mapper}) => { return new Promise((resolve, reject) => { axios.tainacan.post('/field-mappers', { fields_mappers: fieldsMapperMetadata, - "exposer_map": mapper + exposer_map: mapper }).then((res) => { resolve(res.data); })