fix: remove unused commonHeaders from getSearchPosts function

This commit is contained in:
himanshu8443
2025-08-29 21:31:23 +05:30
parent 81b769e16b
commit 2068d6e641
2 changed files with 3 additions and 3 deletions

View File

@@ -56,14 +56,14 @@ export const getSearchPosts = async ({
signal: AbortSignal;
providerContext: ProviderContext;
}): Promise<Post[]> => {
const { getBaseUrl, axios, commonHeaders, cheerio } = providerContext;
const { getBaseUrl, axios, cheerio } = providerContext;
const baseUrl = await getBaseUrl("Vega");
console.log("vegaGetPosts baseUrl:", providerValue, baseUrl);
const url = `${baseUrl}/page/${page}/?s=${searchQuery}`;
console.log("vegaGetPosts url:", url);
return posts(baseUrl, url, signal, commonHeaders, axios, cheerio);
return posts(baseUrl, url, signal, headers, axios, cheerio);
};
async function posts(