department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medical-records/actions/refresh.js

Summary

Maintainability
A
0 mins
Test Coverage
import { Actions } from '../util/actionTypes';
import { getRefreshStatus } from '../api/MrApi';

export const fetchRefreshStatus = () => async dispatch => {
  const response = await getRefreshStatus();
  dispatch({ type: Actions.Refresh.GET_STATUS, payload: response });
};