aboutsummaryrefslogtreecommitdiffstats
path: root/routes/payments.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/payments.js')
-rw-r--r--routes/payments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js
index 70b711da..aa850839 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -2,7 +2,6 @@ const BitcoinCore = require("@asoltys/bitcoin-core");
const { Op } = require("sequelize");
const { join } = require("path");
const fs = require("fs");
-const lnd = require("../lib/lnd");
const read = require("../lib/read");
ah(async () => {
@@ -96,6 +95,7 @@ ah(async () => {
if (config.lna.clightning) {
lna = require("clightning-client")(config.lna.dir);
} else {
+ lnd = require("../lib/lnd");
lna = lnd.default;
lnp = [
"addInvoice",