fix(hydrate): make gatherAuthors() function async

This commit is contained in:
P. Reis 2024-10-18 14:35:30 -03:00
parent a1bf808efd
commit f581dcbcfb

View file

@ -226,7 +226,7 @@ function gatherQuotes({ events, store, signal }: HydrateOpts): Promise<DittoEven
}
/** Collect authors from the events. */
function gatherAuthors({ events, store, signal }: HydrateOpts): Promise<DittoEvent[]> {
async function gatherAuthors({ events, store, signal }: HydrateOpts): Promise<DittoEvent[]> {
const pubkeys = new Set<string>();
for (const event of events) {