From 808c06027f959fde23a412af97419309474bf6d6 Mon Sep 17 00:00:00 2001 From: Emad-salah Date: Tue, 10 Dec 2019 02:36:19 +0100 Subject: [PATCH] Fix macaroon error --- src/routes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 23bf480c..2889a4fd 100644 --- a/src/routes.js +++ b/src/routes.js @@ -413,8 +413,9 @@ module.exports = ( setTimeout(async () => { try { const macaroonExists = await FS.access( - LightningServices.servicesData.macaroonPath + LightningServices.servicesConfig.macaroonPath ); + if (!macaroonExists) { return waitUntilFileExists(seconds + 1); }