mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Make pipeline query easier to look at
This commit is contained in:
parent
718795fcd1
commit
a87497380a
1 changed files with 3 additions and 8 deletions
|
|
@ -147,14 +147,9 @@ async function parseMetadata(event: NostrEvent, signal: AbortSignal): Promise<vo
|
|||
const search = result?.pubkey === event.pubkey ? [name, nip05].filter(Boolean).join(' ').trim() : name ?? '';
|
||||
|
||||
if (search) {
|
||||
await kysely.insertInto('author_search').values({
|
||||
pubkey: event.pubkey,
|
||||
search,
|
||||
}).onConflict(
|
||||
(oc) =>
|
||||
oc.column('pubkey')
|
||||
.doUpdateSet({ search }),
|
||||
)
|
||||
await kysely.insertInto('author_search')
|
||||
.values({ pubkey: event.pubkey, search })
|
||||
.onConflict((oc) => oc.column('pubkey').doUpdateSet({ search }))
|
||||
.execute();
|
||||
}
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue