diff --git a/workers/consolidationWorker.js b/workers/consolidationWorker.js index 5941f40..559f815 100644 --- a/workers/consolidationWorker.js +++ b/workers/consolidationWorker.js @@ -32,7 +32,7 @@ async function runConsolidationWorker(archiveDb, intelligenceDb, config) { ); const insertFact = intelligenceDb.prepare(` - INSERT INTO company_facts + INSERT OR IGNORE INTO company_facts (company_id, type, claim, confidence, confirmation_count, first_seen_at, last_seen_at, last_event_id, supporting_event_ids) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) `);