refactoring exposer-map to exposer_map in actions

This commit is contained in:
Jacson Passold 2018-06-11 23:11:25 -03:00
parent bab6a1f481
commit 50d2ca9847
2 changed files with 3 additions and 3 deletions

View File

@ -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 });

View File

@ -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);
})