diff options
| author | Adam Soltys <[email protected]> | 2026-07-30 21:07:48 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-30 21:07:48 -0700 |
| commit | 60f9c91b61ce069fb472369eb6c16bf1a984a3d6 (patch) | |
| tree | dbc7ea11e5faf77a7b358ff113807df7d7fdb364 /lib/auth.js.map | |
| parent | c21685559ee814e95cb37a5660c73762a8db12c9 (diff) | |
| download | coinos-server-60f9c91b61ce069fb472369eb6c16bf1a984a3d6.tar.gz coinos-server-60f9c91b61ce069fb472369eb6c16bf1a984a3d6.zip | |
zaps: stop spurious "failed to handle zap" warnings on non-zap invoices
The zap dispatch parsed the invoice description and, when it wasn't JSON,
suppressed the error only if the message contained "Unexpected" — V8's parse-
error wording. On Bun the message is "Unable to parse JSON string", so every
paid invoice with a non-JSON memo logged a warning. Parse-then-check instead:
a non-JSON description is simply not a zap and is skipped silently; warn only
when an actual kind-9734 zap request fails to process.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'lib/auth.js.map')
0 files changed, 0 insertions, 0 deletions
