fix: correct search query parameter in getSearchPosts function

This commit is contained in:
himanshu8443
2025-06-25 21:02:23 +05:30
parent bcdfeee3c4
commit beeab83e86
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ const getSearchPosts = function (_a) {
return __awaiter(this, arguments, void 0, function* ({ searchQuery, page, signal, providerContext, }) {
const { getBaseUrl, cheerio } = providerContext;
const baseUrl = yield getBaseUrl("4khdhub");
const url = `${baseUrl}/page/${page}.html?s=hin${searchQuery}`;
const url = `${baseUrl}/page/${page}.html?s=${searchQuery}`;
return posts({ url, signal, cheerio });
});
};