debug: agregar logging para panorama endpoint
This commit is contained in:
@@ -26,15 +26,21 @@ export default defineEventHandler(async (event) => {
|
|||||||
|
|
||||||
const cards: Record<string, any> = {}
|
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) {
|
for (const name of queryNames) {
|
||||||
const card = allCards.find((c: any) => c.name === name)
|
const card = allCards.find((c: any) => c.name === name)
|
||||||
if (!card) {
|
if (!card) {
|
||||||
console.warn(`[Panorama] Query not found: ${name}`)
|
console.warn(`[Panorama] Query not found: ${name}`)
|
||||||
} else {
|
} else {
|
||||||
|
console.log(`[Panorama] Found query: ${name} with ID ${card.id}`)
|
||||||
cards[name] = card
|
cards[name] = card
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('[Panorama] Total cards matched:', Object.keys(cards).length)
|
||||||
|
|
||||||
// Build parameters array for Metabase queries
|
// Build parameters array for Metabase queries
|
||||||
const parameters = [
|
const parameters = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user