Fix function context for scheduled reauth

This commit is contained in:
Râu Cao 2024-06-12 17:08:24 +02:00
parent 04ec236c58
commit bbd41a697d
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

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