diff --git a/apps/server/src/api/v2/metric_files/get-metric-data.ts b/apps/server/src/api/v2/metric_files/get-metric-data.ts index 6559592e4..9528edebb 100644 --- a/apps/server/src/api/v2/metric_files/get-metric-data.ts +++ b/apps/server/src/api/v2/metric_files/get-metric-data.ts @@ -88,7 +88,7 @@ export async function getMetricDataHandler( let credentials: Credentials; try { const rawCredentials = await getDataSourceCredentials({ - dataSourceId: metric.secretId, + dataSourceId: metric.dataSourceId, }); // Ensure credentials have the correct type