From a325908d41934d65553a66d1bfdc724d50e9e2ca Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Jun 2024 22:54:38 -0500 Subject: [PATCH] Fix rendering suggested accounts --- src/controllers/api/suggestions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/suggestions.ts b/src/controllers/api/suggestions.ts index cda2048..3015157 100644 --- a/src/controllers/api/suggestions.ts +++ b/src/controllers/api/suggestions.ts @@ -69,12 +69,12 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s ) .then((events) => hydrateEvents({ events, store, signal })); - return Promise.all(authors.map((pubkey) => { + return Promise.all(authors.map(async (pubkey) => { const profile = profiles.find((event) => event.pubkey === pubkey); return { source: suggested.has(pubkey) ? 'staff' : 'global', - account: profile ? renderAccount(profile) : accountFromPubkey(pubkey), + account: profile ? await renderAccount(profile) : await accountFromPubkey(pubkey), }; })); }