From 51826d28d641769a651f9601fd14c5b157b55a0e Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 1 Jul 2023 00:52:14 -0700 Subject: [PATCH] Ensure clicking Update in Khoj Obsidian indexes PDF files too --- src/interface/obsidian/src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interface/obsidian/src/utils.ts b/src/interface/obsidian/src/utils.ts index 5e176883..053562b6 100644 --- a/src/interface/obsidian/src/utils.ts +++ b/src/interface/obsidian/src/utils.ts @@ -167,7 +167,8 @@ 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`)); + .then(_ => request(`${khojUrl}/api/update?t=markdown`)) + .then(_ => request(`${khojUrl}/api/update?t=pdf`)); } function getIndexDirectoryFromBackendConfig(filepath: string) {