fix: await getBaseUrl in getSearchPosts function

This commit is contained in:
himanshu8443
2025-07-19 20:29:56 +05:30
parent 776db0bf79
commit 6cbff63d4d
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export const getSearchPosts = async function ({
providerContext: ProviderContext;
}): Promise<Post[]> {
const { getBaseUrl, axios, cheerio } = providerContext;
const baseUrl = getBaseUrl("movieBox");
const baseUrl = await getBaseUrl("movieBox");
const url = `${baseUrl}/wefeed-mobile-bff/subject-api/search/v2`;
if (page > 1) {
return [];