From 7007d7e81be8df29f83fe92226726470079bc385 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 6 May 2024 11:21:38 -0500 Subject: [PATCH] verify_credentials: try calling the database directly --- 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 68edfbc9..60a9f278 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 = c.get('pubkey')!; - const event = await getAuthor(pubkey, { relations: ['author_stats'] }); + const [event] = await Storages.db.query([{ kinds: [0], authors: [pubkey], limit: 1 }]); if (event) { return c.json(await renderAccount(event, { withSource: true })); } else {