Fix function context for scheduled reauth
This commit is contained in:
parent
04ec236c58
commit
bbd41a697d
2
index.js
2
index.js
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user