verifyCredentials: wait up to 5 seconds
This commit is contained in:
parent
3d93be6a13
commit
5523c3fc0e
|
@ -47,7 +47,7 @@ const createAccountController: AppController = async (c) => {
|
||||||
const verifyCredentialsController: AppController = async (c) => {
|
const verifyCredentialsController: AppController = async (c) => {
|
||||||
const pubkey = await c.get('signer')?.getPublicKey()!;
|
const pubkey = await c.get('signer')?.getPublicKey()!;
|
||||||
|
|
||||||
const event = await getAuthor(pubkey, { relations: ['author_stats'] });
|
const event = await getAuthor(pubkey, { signal: AbortSignal.timeout(5000) });
|
||||||
if (event) {
|
if (event) {
|
||||||
return c.json(await renderAccount(event, { withSource: true }));
|
return c.json(await renderAccount(event, { withSource: true }));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue