pipeline: fix hydrateEvent

This commit is contained in:
Alex Gleason 2024-03-12 17:09:22 -05:00
parent b867f6c33c
commit 3c8b5be783
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ async function encounterEvent(event: NostrEvent, signal: AbortSignal): Promise<b
/** Hydrate the event with the user, if applicable. */
async function hydrateEvent(event: DittoEvent): Promise<void> {
const [user] = await eventsDB.query([{ kinds: [30361], authors: [Conf.pubkey], limit: 1 }]);
const [user] = await eventsDB.query([{ kinds: [30361], authors: [Conf.pubkey], '#d': [event.pubkey], limit: 1 }]);
event.user = user;
}