diff --git a/controllers/api.js b/controllers/api.js index 1f9d42c..c851f12 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -494,6 +494,7 @@ router.get('/queryroutes/:source/:dest/:amt', async function (req, res) { let request = { pub_key: req.params.dest, + use_mission_control: true, amt: req.params.amt, source_pub_key: req.params.source, }; diff --git a/controllers/website.js b/controllers/website.js index 7785937..e7e95e7 100644 --- a/controllers/website.js +++ b/controllers/website.js @@ -14,6 +14,7 @@ function updateLightning() { lightning.getInfo({}, function (err, info) { if (err) { console.error('lnd failure:', err); + process.exit(4); return; } lightningGetInfo = info; @@ -22,6 +23,7 @@ function updateLightning() { lightning.listChannels({}, function (err, response) { if (err) { console.error('lnd failure:', err); + process.exit(4); return; } console.log('updated');