(limit: number)
| 208 | }; |
| 209 | }; |
| 210 | export const fetchActionData = (limit: number) => { |
| 211 | return (dispatch: any) => { |
| 212 | const project_base_url = 'api/v1' |
| 213 | dispatch(fetchActionRequest()); |
| 214 | request.get(`${project_base_url}/actions?limit=${limit}`) |
| 215 | .then(response => { |
| 216 | dispatch(fetchActionSuccess(response)); |
| 217 | }) |
| 218 | .catch(error => { |
| 219 | dispatch(fetchActionFailure(error.message)); |
| 220 | }); |
| 221 | }; |
| 222 | }; |
no test coverage detected