aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-19 23:51:57 -0700
committerAdam Soltys <[email protected]>2026-03-19 23:51:57 -0700
commit7f1be926fc1acc41776b7ba6f97b762b4586d8d1 (patch)
treed258e8c5afb847c382f70c6689842f69138fc02e /index.ts
parent42a90f201d03aa96d004e6c3cf3f37f5afd8d1ee (diff)
downloadcoinos-server-7f1be926fc1acc41776b7ba6f97b762b4586d8d1.tar.gz
coinos-server-7f1be926fc1acc41776b7ba6f97b762b4586d8d1.zip
ensure lightning payments get processed
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index b0b95d7c..28096c11 100644
--- a/index.ts
+++ b/index.ts
@@ -1,7 +1,7 @@
import app from "$lib/app";
import { admin, auth, optional } from "$lib/auth";
-import { fixBolt12, listenForLightning, replay } from "$lib/lightning";
+import { fixBolt12, listenForLightning, ensureListenerAlive, replay } from "$lib/lightning";
import { startHealthCheck } from "$lib/health";
import { getLocations } from "$lib/locations";
import nwc from "$lib/nwc";
@@ -33,6 +33,7 @@ try {
} catch (e) {}
setTimeout(listenForLightning, 2000);
+setInterval(ensureListenerAlive, 120000);
setInterval(sendHeartbeat, 2000);
app.get("/balances", info.balances);