Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix autoupdate name inconsistency
perf3ctcc85b9a8f6a1
diff --git a/src/routes/api/options.ts b/src/routes/api/options.tsindex 7d74c72440..c26a94589b 100644--- a/src/routes/api/options.ts+++ b/src/routes/api/options.ts@@ -95,7 +95,6 @@ const ALLOWED_OPTIONS = new Set(["aiTemperature","aiSystemPrompt",// Embedding options- "embeddingAutoUpdate","embeddingAutoUpdateEnabled","embeddingBatchSize","embeddingUpdateInterval",diff --git a/src/services/llm/index_service.ts b/src/services/llm/index_service.tsindex e1469eeef8..64e2b36652 100644--- a/src/services/llm/index_service.ts+++ b/src/services/llm/index_service.ts@@ -70,10 +70,10 @@ class IndexService {const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;// Setup automatic indexing if enabled and this instance should process embeddings- if (await options.getOptionBool('embeddingAutoUpdate') && shouldProcessEmbeddings) {+ if (await options.getOptionBool('embeddingAutoUpdateEnabled') && shouldProcessEmbeddings) {this.setupAutomaticIndexing();log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);- } else if (await options.getOptionBool('embeddingAutoUpdate')) {+ } else if (await options.getOptionBool('embeddingAutoUpdateEnabled')) {log.info("Index service: Automatic indexing enabled, but this instance is not configured to process embeddings");}@@ -179,7 +179,7 @@ class IndexService {const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;// Update automatic indexing setting- const autoIndexing = await options.getOptionBool('embeddingAutoUpdate');+ const autoIndexing = await options.getOptionBool('embeddingAutoUpdateEnabled');if (autoIndexing && shouldProcessEmbeddings && !this.automaticIndexingInterval) {this.setupAutomaticIndexing();log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);diff --git a/src/services/options_interface.ts b/src/services/options_interface.tsindex 8a704b0ca1..f0d132dc9c 100644--- a/src/services/options_interface.ts+++ b/src/services/options_interface.ts@@ -67,7 +67,6 @@ export interface OptionDefinitions extends KeyboardShortcutsOptions<KeyboardActiembeddingUpdateInterval: number;embeddingBatchSize: number;embeddingDefaultDimension: number;- embeddingAutoUpdate: boolean;embeddingsDefaultProvider: string;enableAutomaticIndexing: boolean;embeddingSimilarityThreshold: string;