Remove the console.log from accountLookupController

This commit is contained in:
Alex Gleason 2024-06-01 10:46:19 -05:00
parent 4e80fdcc7d
commit 816f3c806d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}
};