diff options
| author | Adam Soltys <[email protected]> | 2025-01-06 04:13:23 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-06 04:13:23 +0000 |
| commit | 40ceba31899c8d0aa10b3007fea62fb282cd7a60 (patch) | |
| tree | cd4f226789b2b8c88ebd60c878d18753e072aa7e /lib/lightning.ts | |
| parent | 75f3c604c3d36244abfbce625680d758f410c453 (diff) | |
| download | coinos-server-40ceba31899c8d0aa10b3007fea62fb282cd7a60.tar.gz coinos-server-40ceba31899c8d0aa10b3007fea62fb282cd7a60.zip | |
handle zaps asynchronously
Diffstat (limited to 'lib/lightning.ts')
| -rw-r--r-- | lib/lightning.ts | 4 |
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); |
