Fix function context for scheduled reauth

This commit is contained in:
2024-06-12 17:08:24 +02:00
parent 04ec236c58
commit bbd41a697d

View File

@@ -121,7 +121,7 @@ function connectLndhub () {
if (connected) { if (connected) {
console.log("Connected to Lndhub"); console.log("Connected to Lndhub");
// automatically refresh auth token once a day // automatically refresh auth token once a day
setInterval(lndhub.reauth, 86400000); setInterval(() => lndhub.reauth(), 86400000);
} else { } else {
process.exit(1); process.exit(1);
} }