Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const requestSubmitBooking = () => (dispatch, getState) => {
  2. dispatch(requestSubmitBookingStart());
  3.  
  4. return request.post('bookings', payload)
  5. .then(({ data }) => {
  6. dispatch(requestSubmitBookingSuccess({ bookingResult: data.booking }));
  7. })
  8. .catch(({ message }) => {
  9. dispatch(requestSubmitBookingFailure({ errorMessage: message }));
  10. });
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement