aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-06 04:13:23 +0000
committerAdam Soltys <[email protected]>2025-01-06 04:13:23 +0000
commit40ceba31899c8d0aa10b3007fea62fb282cd7a60 (patch)
treecd4f226789b2b8c88ebd60c878d18753e072aa7e /lib/lightning.ts
parent75f3c604c3d36244abfbce625680d758f410c453 (diff)
downloadcoinos-server-40ceba31899c8d0aa10b3007fea62fb282cd7a60.tar.gz
coinos-server-40ceba31899c8d0aa10b3007fea62fb282cd7a60.zip
handle zaps asynchronously
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts
index 0e9e6d8e..e2c00483 100644
--- a/lib/lightning.ts
+++ b/lib/lightning.ts
@@ -32,7 +32,7 @@ export async function listenForLightning() {
if (invoice?.memo) {
try {
- if (JSON.parse(description).kind === 9734) await handleZap(inv);
+ if (JSON.parse(description).kind === 9734) handleZap(inv);
} catch (e) {
if (!e.message.includes("Unexpected"))
warn("failed to handle zap", e.message);
@@ -78,7 +78,7 @@ export async function replay(index) {
if (invoice?.memo) {
try {
- if (JSON.parse(description).kind === 9734) await handleZap(inv);
+ if (JSON.parse(description).kind === 9734) handleZap(inv);
} catch (e) {
if (!e.message.includes("Unexpected"))
warn("failed to handle zap", e.message);