diff options
Diffstat (limited to 'lib/health.ts')
| -rw-r--r-- | lib/health.ts | 4 |
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"); |
