From 5523c3fc0eeca605cdbf5691a37b7581001b0928 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 18 May 2024 23:02:59 -0500 Subject: [PATCH] verifyCredentials: wait up to 5 seconds --- src/controllers/api/accounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/accounts.ts b/src/controllers/api/accounts.ts index 4777f56..f66e0ac 100644 --- a/src/controllers/api/accounts.ts +++ b/src/controllers/api/accounts.ts @@ -47,7 +47,7 @@ const createAccountController: AppController = async (c) => { const verifyCredentialsController: AppController = async (c) => { 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) { return c.json(await renderAccount(event, { withSource: true })); } else {