Do not configure khoj server for pull based indexing from khoj.el

Do not make khoj server pull update index on Obsidian plugin load.
Index is updated on push from plugin instead now/
This commit is contained in:
Debanjum Singh Solanky
2023-10-17 21:44:54 -07:00
parent d9d133dfb9
commit 51363d280d
2 changed files with 3 additions and 52 deletions

View File

@@ -178,12 +178,8 @@ export async function updateKhojBackend(khojUrl: string, khojConfig: Object) {
method: 'POST',
contentType: 'application/json',
};
// Save khojConfig on khoj backend at khojConfigUrl
await request(requestContent)
// Refresh khoj search index after updating config
.then(_ => request(`${khojUrl}/api/update?t=markdown`))
.then(_ => request(`${khojUrl}/api/update?t=pdf`));
request(requestContent);
}
function getIndexDirectoryFromBackendConfig(filepath: string) {