mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
Do not force index update when configure backend on plugin load
- Backend can handle incremental updates - Avoid khoj usability delay by avoiding recomputed everytime vault opened
This commit is contained in:
parent
3fe5ce2721
commit
51ea6d9c9b
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ export async function updateKhojBackend(khojUrl: string, khojConfig: Object) {
|
|||
// Save khojConfig on khoj backend at khojConfigUrl
|
||||
await request(requestContent)
|
||||
// Refresh khoj search index after updating config
|
||||
.then(_ => request(`${khojUrl}/api/update?t=markdown&force=true`));
|
||||
.then(_ => request(`${khojUrl}/api/update?t=markdown`));
|
||||
}
|
||||
|
||||
function getIndexDirectoryFromBackendConfig(khojConfig: any) {
|
||||
|
|
Loading…
Reference in a new issue