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 {