Ensure clicking Update in Khoj Obsidian indexes PDF files too

This commit is contained in:
Debanjum Singh Solanky
2023-07-01 00:52:14 -07:00
parent dac2d14380
commit 51826d28d6

View File

@@ -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) {