mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: await getBaseUrl in getSearchPosts function
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user