From 816f3c806d26c93ca8238f99193c3bee8a396663 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 1 Jun 2024 10:46:19 -0500 Subject: [PATCH] Remove the console.log from accountLookupController --- src/controllers/api/accounts.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/controllers/api/accounts.ts b/src/controllers/api/accounts.ts index d9f2292..ecf71ea 100644 --- a/src/controllers/api/accounts.ts +++ b/src/controllers/api/accounts.ts @@ -99,10 +99,9 @@ const accountLookupController: AppController = async (c) => { return c.json(await renderAccount(event)); } try { - const pubkey = bech32ToPubkey(decodeURIComponent(acct)) as string; - return c.json(await accountFromPubkey(pubkey)); - } catch (e) { - console.log(e); + const pubkey = bech32ToPubkey(decodeURIComponent(acct)); + return c.json(await accountFromPubkey(pubkey!)); + } catch { return c.json({ error: 'Could not find user.' }, 404); } };