debug: agregar logging para panorama endpoint
All checks were successful
build-and-deploy / build (push) Successful in 45s
build-and-deploy / deploy (push) Successful in 3s

This commit is contained in:
2025-10-14 10:39:16 -06:00
parent f8c53da6fc
commit 092c0c88bd

View File

@@ -26,15 +26,21 @@ export default defineEventHandler(async (event) => {
const cards: Record<string, any> = {}
console.log('[Panorama] Total cards found:', allCards.length)
console.log('[Panorama] Looking for queries:', queryNames)
for (const name of queryNames) {
const card = allCards.find((c: any) => c.name === name)
if (!card) {
console.warn(`[Panorama] Query not found: ${name}`)
} else {
console.log(`[Panorama] Found query: ${name} with ID ${card.id}`)
cards[name] = card
}
}
console.log('[Panorama] Total cards matched:', Object.keys(cards).length)
// Build parameters array for Metabase queries
const parameters = [
{