fix: SDK response support #74
3 changed files with 11 additions and 5 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -1519,7 +1519,10 @@ function doClaimYoutubeChannels() {
|
|||
type: USER_YOUTUBE_IMPORT_STARTED
|
||||
});
|
||||
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,
|
||||
public_key: address.pubkey
|
||||
}).then(response => {
|
||||
|
|
7
dist/bundle.js
vendored
7
dist/bundle.js
vendored
|
@ -3013,8 +3013,11 @@ function doClaimYoutubeChannels() {
|
|||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_YOUTUBE_IMPORT_STARTED"]
|
||||
});
|
||||
var transferResponse;
|
||||
return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list().then(function (addressList) {
|
||||
return addressList.sort(function (a, b) {
|
||||
return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list({
|
||||
page: 1,
|
||||
page_size: 99999
|
||||
}).then(function (addressList) {
|
||||
return addressList.items.sort(function (a, b) {
|
||||
return a.used_times - b.used_times;
|
||||
})[0];
|
||||
}).then(function (address) {
|
||||
|
|
|
@ -393,8 +393,8 @@ export function doClaimYoutubeChannels() {
|
|||
});
|
||||
|
||||
let transferResponse;
|
||||
return Lbry.address_list()
|
||||
.then(addressList => addressList.sort((a, b) => a.used_times - b.used_times)[0])
|
||||
return 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,
|
||||
|
|
Loading…
Reference in a new issue