mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29: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 ?? '';
|
const search = result?.pubkey === event.pubkey ? [name, nip05].filter(Boolean).join(' ').trim() : name ?? '';
|
||||||
|
|
||||||
if (search) {
|
if (search) {
|
||||||
await kysely.insertInto('author_search').values({
|
await kysely.insertInto('author_search')
|
||||||
pubkey: event.pubkey,
|
.values({ pubkey: event.pubkey, search })
|
||||||
search,
|
.onConflict((oc) => oc.column('pubkey').doUpdateSet({ search }))
|
||||||
}).onConflict(
|
|
||||||
(oc) =>
|
|
||||||
oc.column('pubkey')
|
|
||||||
.doUpdateSet({ search }),
|
|
||||||
)
|
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue