Fixing removal of full path function (adding back original functionality).
This commit is contained in:
parent
e94cdf1f8e
commit
ef0787917a
|
@ -73,7 +73,8 @@ const makeCachedApiCall = async params => {
|
||||||
*/
|
*/
|
||||||
const requestApiCall = method => async params => {
|
const requestApiCall = method => async params => {
|
||||||
const { url, cache = false } = params
|
const { url, cache = false } = params
|
||||||
const enrichedParams = { ...params, method, url }
|
const fixedUrl = `/${url}`.replace("//", "/")
|
||||||
|
const enrichedParams = { ...params, method, fixedUrl }
|
||||||
return await (cache ? makeCachedApiCall : makeApiCall)(enrichedParams)
|
return await (cache ? makeCachedApiCall : makeApiCall)(enrichedParams)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue