fix: SDK response support

This commit is contained in:
Thomas Zarebczan 2019-11-04 18:32:32 -05:00
parent 27b6fcb839
commit 896fafccef
3 changed files with 11 additions and 5 deletions

5
dist/bundle.es.js vendored
View file

@ -1519,7 +1519,10 @@ function doClaimYoutubeChannels() {
type: USER_YOUTUBE_IMPORT_STARTED type: USER_YOUTUBE_IMPORT_STARTED
}); });
let transferResponse; let transferResponse;
return lbryRedux.Lbry.address_list().then(addressList => addressList.sort((a, b) => a.used_times - b.used_times)[0]).then(address => Lbryio.call('yt', 'transfer', { return lbryRedux.Lbry.address_list({
page: 1,
page_size: 99999
}).then(addressList => addressList.items.sort((a, b) => a.used_times - b.used_times)[0]).then(address => Lbryio.call('yt', 'transfer', {
address: address.address, address: address.address,
public_key: address.pubkey public_key: address.pubkey
}).then(response => { }).then(response => {

7
dist/bundle.js vendored
View file

@ -3013,8 +3013,11 @@ function doClaimYoutubeChannels() {
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_YOUTUBE_IMPORT_STARTED"] type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_YOUTUBE_IMPORT_STARTED"]
}); });
var transferResponse; var transferResponse;
return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list().then(function (addressList) { return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list({
return addressList.sort(function (a, b) { page: 1,
page_size: 99999
}).then(function (addressList) {
return addressList.items.sort(function (a, b) {
return a.used_times - b.used_times; return a.used_times - b.used_times;
})[0]; })[0];
}).then(function (address) { }).then(function (address) {

View file

@ -393,8 +393,8 @@ export function doClaimYoutubeChannels() {
}); });
let transferResponse; let transferResponse;
return Lbry.address_list() return Lbry.address_list({ page: 1, page_size: 99999 })
.then(addressList => addressList.sort((a, b) => a.used_times - b.used_times)[0]) .then(addressList => addressList.items.sort((a, b) => a.used_times - b.used_times)[0])
.then(address => .then(address =>
Lbryio.call('yt', 'transfer', { Lbryio.call('yt', 'transfer', {
address: address.address, address: address.address,