aboutsummaryrefslogtreecommitdiffstats
path: root/lib/health.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
committerAdam Soltys <[email protected]>2026-02-28 15:16:20 -0800
commit32f01e3e328db0006a55c6324625b49d60244b66 (patch)
treeb97866549b919964957365e1e05681e85af7021a /lib/health.ts
parenta1632ae402d11fdd7ffc360de97c55e0b4fad677 (diff)
downloadcoinos-server-32f01e3e328db0006a55c6324625b49d60244b66.tar.gz
coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.zip
fix typescript issues
Diffstat (limited to 'lib/health.ts')
-rw-r--r--lib/health.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/health.ts b/lib/health.ts
index fbefa8fa..0502748f 100644
--- a/lib/health.ts
+++ b/lib/health.ts
@@ -41,7 +41,7 @@ async function checkLightningHealth(): Promise<boolean> {
try {
l("health check: testing lightning connection...");
- const info = await withTimeout(ln.getinfo(), RPC_TIMEOUT, "getinfo");
+ const info = await withTimeout(ln.getinfo(), RPC_TIMEOUT, "getinfo") as any;
if (!info?.id) {
throw new Error("getinfo returned invalid response (no node id)");
@@ -57,7 +57,7 @@ async function checkLightningHealth(): Promise<boolean> {
}),
RPC_TIMEOUT,
"invoice",
- );
+ ) as any;
if (!invoice?.bolt11) {
throw new Error("invoice creation returned invalid response");