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 {