From a87497380a0fbbad4fb4f9de5ef6869d6bde3ba5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 15 Sep 2024 19:22:14 -0500 Subject: [PATCH] Make pipeline query easier to look at --- src/pipeline.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index 87249b97..8ca7ae5f 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -147,14 +147,9 @@ async function parseMetadata(event: NostrEvent, signal: AbortSignal): Promise - oc.column('pubkey') - .doUpdateSet({ search }), - ) + await kysely.insertInto('author_search') + .values({ pubkey: event.pubkey, search }) + .onConflict((oc) => oc.column('pubkey').doUpdateSet({ search })) .execute(); } } catch {