From 9f3fa5d4e411f0ded0735f93b5074a423d43b215 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 21 Aug 2018 10:46:53 -0400 Subject: [PATCH 1/3] remove node_id per https://github.com/lbryio/internal-apis/commit/3f7bd0d969e18742fa326fa9d724e4d33e1122da --- src/renderer/redux/actions/user.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/renderer/redux/actions/user.js b/src/renderer/redux/actions/user.js index dcd074c7d..1da868a8f 100644 --- a/src/renderer/redux/actions/user.js +++ b/src/renderer/redux/actions/user.js @@ -40,7 +40,6 @@ export function doInstallNew() { const payload = { app_version: pjson.version }; Lbry.status().then(status => { payload.app_id = status.installation_id; - payload.node_id = status.lbry_id; Lbry.version().then(version => { payload.daemon_version = version.lbrynet_version; payload.operating_system = version.os_system; -- 2.45.2 From 7e5a8c186485f8f44b861756a77fc99f2da82f65 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 21 Aug 2018 11:39:49 -0400 Subject: [PATCH 2/3] nevermind, adding node_id back With the correct value --- src/renderer/redux/actions/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/redux/actions/user.js b/src/renderer/redux/actions/user.js index 1da868a8f..eac36ed93 100644 --- a/src/renderer/redux/actions/user.js +++ b/src/renderer/redux/actions/user.js @@ -40,6 +40,7 @@ export function doInstallNew() { const payload = { app_version: pjson.version }; Lbry.status().then(status => { payload.app_id = status.installation_id; + payload.node_id = status.dht.node_id; Lbry.version().then(version => { payload.daemon_version = version.lbrynet_version; payload.operating_system = version.os_system; -- 2.45.2 From e232b5b0d448b03070f58852fe737160b21af456 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 21 Aug 2018 12:18:10 -0400 Subject: [PATCH 3/3] check for status.dht --- src/renderer/redux/actions/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/redux/actions/user.js b/src/renderer/redux/actions/user.js index eac36ed93..963e503c9 100644 --- a/src/renderer/redux/actions/user.js +++ b/src/renderer/redux/actions/user.js @@ -40,7 +40,7 @@ export function doInstallNew() { const payload = { app_version: pjson.version }; Lbry.status().then(status => { payload.app_id = status.installation_id; - payload.node_id = status.dht.node_id; + if (status.dht) payload.node_id = status.dht.node_id; Lbry.version().then(version => { payload.daemon_version = version.lbrynet_version; payload.operating_system = version.os_system; -- 2.45.2