adminAccountsController: fix hydrating accounts

This commit is contained in:
Alex Gleason 2024-01-05 16:33:05 -06:00
parent 46b7185f7b
commit e1a95b2319
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const adminAccountsController: AppController = async (c) => {
const events = await eventsDB.getEvents([{ kinds: [30361], authors: [Conf.pubkey], limit }]);
const pubkeys = events.map((event) => event.tags.find(([name]) => name === 'd')?.[1]!);
const authors = await eventsDB.getEvents([{ kinds: [0], ids: pubkeys, limit: pubkeys.length }]);
const authors = await eventsDB.getEvents([{ kinds: [0], authors: pubkeys }]);
for (const event of events) {
const d = event.tags.find(([name]) => name === 'd')?.[1];