aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 99c9adee..8cbff1e5 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -148,6 +148,7 @@ export default {
const username = c.req.param("username");
try {
const user = await getUser(username);
+ if (!user) fail(`User ${username} not found`);
const invoices = await db.lRange(`${user.id}:invoices`, 0, 10);
let invoice;