blob: b5694cd982c38bf4b10501c6d1d10e94df35fc0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import {
getAlmacenesAPI
} from 'ba-api/almacen';
import * as types from './actionTypes'
export const setAlmacenes = (payload) => ({
type: types.LISTA_ALMACEN,
payload
});
export const getAlmacenes = () => async dispatch => {
try{
const res = await getAlmacenesAPI();
dispatch(setAlmacenes({res}))
return res;
}catch(e){
console.log(e)
}
}
|