Remove the console.log from accountLookupController
This commit is contained in:
parent
4e80fdcc7d
commit
816f3c806d
|
@ -99,10 +99,9 @@ const accountLookupController: AppController = async (c) => {
|
||||||
return c.json(await renderAccount(event));
|
return c.json(await renderAccount(event));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const pubkey = bech32ToPubkey(decodeURIComponent(acct)) as string;
|
const pubkey = bech32ToPubkey(decodeURIComponent(acct));
|
||||||
return c.json(await accountFromPubkey(pubkey));
|
return c.json(await accountFromPubkey(pubkey!));
|
||||||
} catch (e) {
|
} catch {
|
||||||
console.log(e);
|
|
||||||
return c.json({ error: 'Could not find user.' }, 404);
|
return c.json({ error: 'Could not find user.' }, 404);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue