refactoring exposer-map to exposer_map in actions
This commit is contained in:
parent
bab6a1f481
commit
50d2ca9847
|
@ -180,7 +180,7 @@ export const sendCollection = ( { commit }, { name, description, status, mapper
|
||||||
name: name,
|
name: name,
|
||||||
description: description,
|
description: description,
|
||||||
status: status,
|
status: status,
|
||||||
'exposer_map': mapper
|
exposer_map: mapper
|
||||||
})
|
})
|
||||||
.then( res => {
|
.then( res => {
|
||||||
commit('setCollection', { name: name, description: description, status: status, mapper: mapper });
|
commit('setCollection', { name: name, description: description, status: status, mapper: mapper });
|
||||||
|
|
|
@ -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) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios.tainacan.post('/field-mappers', {
|
axios.tainacan.post('/field-mappers', {
|
||||||
fields_mappers: fieldsMapperMetadata,
|
fields_mappers: fieldsMapperMetadata,
|
||||||
"exposer_map": mapper
|
exposer_map: mapper
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue