From db463188a84dd875aef37786c2b3b6ecc8c2ba81 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 5 Apr 2019 08:29:01 +0100 Subject: [PATCH] update connection string --- dist/bundle.js | 6 ++++-- src/lbryio.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index d5f52f4..f3648ae 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1199,7 +1199,7 @@ var Lbryio = { authenticationPromise: null, exchangePromise: null, exchangeLastFetched: null, - CONNECTION_STRING: 'https://api.testnet.lbry.tech/' + CONNECTION_STRING: 'https://api.lbry.com/' }; var EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000; @@ -1358,7 +1358,7 @@ Lbryio.authenticate = function () { Lbryio.authToken = response.auth_token; res(response); }).catch(function (error) { - return rej(); + return rej(error); }); }); }); @@ -8512,6 +8512,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +// @flow /*:: import type { GetState } from 'types/redux';*/ /*:: import type { Dispatch as ReduxDispatch, @@ -9584,6 +9585,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +// @flow var doFetchViewCount = exports.doFetchViewCount = function doFetchViewCount(claimId /*: string*/) { return function (dispatch) { dispatch({ type: ACTIONS.FETCH_VIEW_COUNT_STARTED }); diff --git a/src/lbryio.js b/src/lbryio.js index 4776e35..a0edaef 100644 --- a/src/lbryio.js +++ b/src/lbryio.js @@ -7,7 +7,7 @@ const Lbryio = { authenticationPromise: null, exchangePromise: null, exchangeLastFetched: null, - CONNECTION_STRING: 'https://api.testnet.lbry.tech/', + CONNECTION_STRING: 'https://api.lbry.com/', }; const EXCHANGE_RATE_TIMEOUT = 20 * 60 * 1000; @@ -160,7 +160,7 @@ Lbryio.authenticate = () => { Lbryio.authToken = response.auth_token; res(response); }) - .catch(error => rej()); + .catch(error => rej(error)); }); }); })