fix: await providerContext.getBaseUrl in fetchPosts function and add console log for debugging

This commit is contained in:
himanshu8443
2025-09-29 16:50:29 +05:30
parent d83941e1d1
commit 99a76a1867
2 changed files with 3 additions and 2 deletions

View File

@@ -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