diff --git a/src/db/events.ts b/src/db/events.ts index 0bedccf..59d831b 100644 --- a/src/db/events.ts +++ b/src/db/events.ts @@ -25,9 +25,11 @@ function insertEvent(event: Event): Promise { }) .execute(); - await trx.insertInto('events_fts') - .values({ id: event.id, content: event.content }) - .execute(); + if (event.kind === 1) { + await trx.insertInto('events_fts') + .values({ id: event.id, content: event.content }) + .execute(); + } const tagCounts: Record = {}; const tags = event.tags.reduce[]>((results, tag) => {