diff options
| -rw-r--r-- | lib/lightning.ts | 2 | ||||
| -rw-r--r-- | routes/users.ts | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts index bd8f0f9c..764ce627 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -21,7 +21,7 @@ export async function listenForLightning() { try { const payIndex = (await g("pay_index")) || 0; - l(`lightning listener: waiting for invoice (pay_index=${payIndex})`); + // l(`lightning listener: waiting for invoice (pay_index=${payIndex})`); const inv = await lnListen.waitanyinvoice(payIndex); const { diff --git a/routes/users.ts b/routes/users.ts index 7901df4e..128a2b72 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -166,8 +166,7 @@ export default { const user = await getNostrUser(key); res.send(pick(user, fields)); } catch (e) { - err("problem getting user", key, e.message); - res.code(500).send(e.message); + res.code(404).send("User not found"); } }, |
