mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
fix: await providerContext.getBaseUrl in fetchPosts function and add console log for debugging
This commit is contained in:
@@ -62,7 +62,8 @@ async function fetchPosts({
|
||||
providerContext: ProviderContext;
|
||||
}): Promise<Post[]> {
|
||||
try {
|
||||
const baseUrl = providerContext.getBaseUrl("kmmovies");
|
||||
const baseUrl = await providerContext.getBaseUrl("kmmovies");
|
||||
console.log("KM Movies baseUrl:", baseUrl);
|
||||
let url: string;
|
||||
|
||||
// --- Build URL for category filter or search query
|
||||
|
||||
Reference in New Issue
Block a user