diff --git a/src/app/dashboard/crm/page.tsx b/src/app/dashboard/crm/page.tsx index b28b59e..2e72524 100644 --- a/src/app/dashboard/crm/page.tsx +++ b/src/app/dashboard/crm/page.tsx @@ -67,7 +67,7 @@ async function fetchCrmLeads( .eq('crm', 'clientify') .order('created_at', { ascending: false }) .range(offset, offset + pageSize - 1); - data = retry.data; + data = retry.data as typeof data; error = retry.error; } if (error) break; diff --git a/src/app/dashboard/kpis/page.tsx b/src/app/dashboard/kpis/page.tsx index 0e3412b..7054a96 100644 --- a/src/app/dashboard/kpis/page.tsx +++ b/src/app/dashboard/kpis/page.tsx @@ -73,7 +73,7 @@ async function fetchCrmLeads( .eq('crm', 'clientify') .order('created_at', { ascending: false }) .range(offset, offset + pageSize - 1); - data = retry.data; + data = retry.data as typeof data; error = retry.error; } if (error) break; diff --git a/tsconfig.json b/tsconfig.json index c133409..ccdb1d5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,5 +23,5 @@ } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "scripts"] }