UNPKG

symphony-integration-commons

Version:

Common components for 3rd party developers build the user facing application for Symphony Integrations.

13 lines (11 loc) 351 B
/* eslint-disable no-debugger */ import { call, put } from 'redux-saga/effects'; import { getBaseWebHookURL as getURL } from './apiCalls'; export function* getBaseWebHookURL() { try { const url = yield call(getURL); yield put({ type: 'SET_BASE_WEBHOOK_URL', url }); } catch (error) { yield put({ type: 'FETCH_FAILED', error }); } }