Fix createRequestUrl method signature to fetch results from khoj web

This commit is contained in:
Debanjum Singh Solanky 2023-06-28 12:10:45 -07:00
parent 212b1a96c8
commit 1773a78339

View file

@ -172,7 +172,7 @@
});
}
function createRequestUrl(query, results_count, type, rerank) {
function createRequestUrl(query, type, results_count, rerank) {
// Generate Backend API URL to execute Search
let url = `/api/search?q=${encodeURIComponent(query)}&n=${results_count}&client=web`;
// If type is not 'all', append type to URL