mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: settings
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user