diff --git a/lib/forex.js b/lib/forex.js index aa5ce06e..0cdcd300 100644 --- a/lib/forex.js +++ b/lib/forex.js @@ -48,7 +48,7 @@ const getRate = (retries = 1, fiatCode) => { if (!activeAPI) throw new Error(`FOREX api ${selected} does not exist.`) - return activeAPI(fiatCode, fiatCodeProperty, rateProperty).then(res => res) + return activeAPI(fiatCode, fiatCodeProperty, rateProperty) .catch(() => { // Switch service const erroredService = API_QUEUE.shift()