update bundle
This commit is contained in:
parent
3587194b39
commit
5c19e56aa8
2 changed files with 4 additions and 18 deletions
11
dist/bundle.es.js
vendored
11
dist/bundle.es.js
vendored
|
@ -1979,14 +1979,11 @@ function doSetSync(oldHash, newHash, data) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: SET_SYNC_STARTED
|
type: SET_SYNC_STARTED
|
||||||
});
|
});
|
||||||
console.log(`/sync/set with old_hash: ${oldHash}, new_hash: ${newHash}, data: ${data}`);
|
|
||||||
Lbryio.call('sync', 'set', {
|
Lbryio.call('sync', 'set', {
|
||||||
old_hash: oldHash,
|
old_hash: oldHash,
|
||||||
new_hash: newHash,
|
new_hash: newHash,
|
||||||
data
|
data
|
||||||
}, 'post').then(response => {
|
}, 'post').then(response => {
|
||||||
console.log(response);
|
|
||||||
|
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
return dispatch({
|
return dispatch({
|
||||||
type: SET_SYNC_FAILED,
|
type: SET_SYNC_FAILED,
|
||||||
|
@ -2003,7 +2000,6 @@ function doSetSync(oldHash, newHash, data) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error);
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: SET_SYNC_FAILED,
|
type: SET_SYNC_FAILED,
|
||||||
data: {
|
data: {
|
||||||
|
@ -2019,11 +2015,9 @@ function doGetSync(password) {
|
||||||
type: GET_SYNC_STARTED
|
type: GET_SYNC_STARTED
|
||||||
});
|
});
|
||||||
lbryRedux.Lbry.sync_hash().then(hash => {
|
lbryRedux.Lbry.sync_hash().then(hash => {
|
||||||
console.log(`/sync/get with hash: ${hash}, password: ${password}`);
|
|
||||||
Lbryio.call('sync', 'get', {
|
Lbryio.call('sync', 'get', {
|
||||||
hash
|
hash
|
||||||
}, 'post').then(response => {
|
}, 'post').then(response => {
|
||||||
console.log(response);
|
|
||||||
const data = {
|
const data = {
|
||||||
hasWallet: true
|
hasWallet: true
|
||||||
};
|
};
|
||||||
|
@ -2049,9 +2043,8 @@ function doGetSync(password) {
|
||||||
type: GET_SYNC_COMPLETED,
|
type: GET_SYNC_COMPLETED,
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
}).catch(err => {
|
}).catch(() => {
|
||||||
console.log(err); // user doesn't have a synced wallet
|
// user doesn't have a synced wallet
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: GET_SYNC_COMPLETED,
|
type: GET_SYNC_COMPLETED,
|
||||||
data: {
|
data: {
|
||||||
|
|
11
dist/bundle.js
vendored
11
dist/bundle.js
vendored
|
@ -3406,14 +3406,11 @@ function doSetSync(oldHash, newHash, data) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_STARTED"]
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_STARTED"]
|
||||||
});
|
});
|
||||||
console.log("/sync/set with old_hash: ".concat(oldHash, ", new_hash: ").concat(newHash, ", data: ").concat(data));
|
|
||||||
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'set', {
|
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'set', {
|
||||||
old_hash: oldHash,
|
old_hash: oldHash,
|
||||||
new_hash: newHash,
|
new_hash: newHash,
|
||||||
data: data
|
data: data
|
||||||
}, 'post').then(function (response) {
|
}, 'post').then(function (response) {
|
||||||
console.log(response);
|
|
||||||
|
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
return dispatch({
|
return dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"],
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"],
|
||||||
|
@ -3430,7 +3427,6 @@ function doSetSync(oldHash, newHash, data) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
console.log(error);
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"],
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"],
|
||||||
data: {
|
data: {
|
||||||
|
@ -3446,11 +3442,9 @@ function doGetSync(password) {
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_STARTED"]
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_STARTED"]
|
||||||
});
|
});
|
||||||
lbry_redux__WEBPACK_IMPORTED_MODULE_2__["Lbry"].sync_hash().then(function (hash) {
|
lbry_redux__WEBPACK_IMPORTED_MODULE_2__["Lbry"].sync_hash().then(function (hash) {
|
||||||
console.log("/sync/get with hash: ".concat(hash, ", password: ").concat(password));
|
|
||||||
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'get', {
|
lbryio__WEBPACK_IMPORTED_MODULE_1__["default"].call('sync', 'get', {
|
||||||
hash: hash
|
hash: hash
|
||||||
}, 'post').then(function (response) {
|
}, 'post').then(function (response) {
|
||||||
console.log(response);
|
|
||||||
var data = {
|
var data = {
|
||||||
hasWallet: true
|
hasWallet: true
|
||||||
};
|
};
|
||||||
|
@ -3476,9 +3470,8 @@ function doGetSync(password) {
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"],
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"],
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
})["catch"](function (err) {
|
})["catch"](function () {
|
||||||
console.log(err); // user doesn't have a synced wallet
|
// user doesn't have a synced wallet
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"],
|
type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["GET_SYNC_COMPLETED"],
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in a new issue