From 5642b90b54084061cdbbf6f1dc70c38245b05d5f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 19 Nov 2024 13:50:35 -0800 Subject: min fee 5 sats --- routes/payments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/payments.ts b/routes/payments.ts index c8fd07dd..5a6eba91 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -157,9 +157,10 @@ export default { params: { hash }, } = req; const p = await getPayment(hash); - if (p.type === types.internal) p.with = await g(`user:${p.ref}`); + if (p?.type === types.internal) p.with = await g(`user:${p.ref}`); res.send(p); } catch (e) { + console.log(e); err("failed to get payment", e.message); bail(res, e.message); } -- cgit v1.2.3