fix: settings

This commit is contained in:
elforjani3
2020-09-30 19:01:07 +02:00
parent 7d8b05ff66
commit 23f381065a
3 changed files with 78 additions and 51 deletions

View File

@@ -3,18 +3,18 @@ import t from 'store/types';
export const submitOptions = ({ form }) => {
return (dispatch) => {
return ApiService.post('options', form);
return ApiService.post('settings', form);
};
};
export const FetchOptions = ({ form }) => {
return (dispatch) =>
new Promise((resolve, reject) => {
ApiService.get('options')
ApiService.get('settings')
.then((response) => {
dispatch({
type: t.SETTING_SET,
options: response.data.options,
options: response.data.settings,
});
resolve(response);
})