From 505ba27013bb6d720d36ed9f4052895d24570f65 Mon Sep 17 00:00:00 2001 From: Shahana Farooqui Date: Sat, 18 Jan 2020 11:17:04 -0500 Subject: [PATCH] Fixed Conf API for ln implementation precendence Fixed Conf API for ln implementation precendence --- controllers/RTLConf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/RTLConf.js b/controllers/RTLConf.js index 35a89999..3d5f63c8 100644 --- a/controllers/RTLConf.js +++ b/controllers/RTLConf.js @@ -32,8 +32,8 @@ exports.getRTLConfig = (req, res, next) => { configPath: common.nodes[0].config_path, bitcoindConfigPath: common.nodes[0].bitcoind_config_path }; - jsonConfig.Settings.lnImplementation = (jsonConfig.Settings.lnImplementation) ? jsonConfig.Settings.lnImplementation : common.nodes[0].ln_implementation; - jsonConfig.Settings.channelBackupPath = (jsonConfig.Settings.channelBackupPath) ? jsonConfig.Settings.channelBackupPath : common.nodes[0].channel_backup_path; + jsonConfig.Settings.lnImplementation = (common.nodes[0].ln_implementation) ? common.nodes[0].ln_implementation : (jsonConfig.Settings.lnImplementation ? jsonConfig.Settings.lnImplementation : 'LND'); + jsonConfig.Settings.channelBackupPath = common.nodes[0].channel_backup_path ? common.nodes[0].channel_backup_path : (jsonConfig.Settings.channelBackupPath) ? jsonConfig.Settings.channelBackupPath : common.nodes[0].channel_backup_path; jsonConfig.Settings.flgSidenavOpened = (jsonConfig.Settings.flgSidenavOpened) ? jsonConfig.Settings.flgSidenavOpened : true; jsonConfig.Settings.flgSidenavPinned = (jsonConfig.Settings.flgSidenavPinned) ? jsonConfig.Settings.flgSidenavPinned : true; jsonConfig.Settings.menu = (jsonConfig.Settings.menu) ? jsonConfig.Settings.menu : 'VERTICAL';