From 46abe3ac0c03aef702d3bcd4a00c4c741fb96a07 Mon Sep 17 00:00:00 2001 From: Wells Bunker Date: Mon, 22 Sep 2025 10:41:11 -0600 Subject: [PATCH] hot fix for metric and dashboard v2 endpoints --- apps/web/src/api/buster_rest/dashboards/requests.ts | 2 +- apps/web/src/api/buster_rest/metrics/requests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/api/buster_rest/dashboards/requests.ts b/apps/web/src/api/buster_rest/dashboards/requests.ts index f4c964e03..c641fefb4 100644 --- a/apps/web/src/api/buster_rest/dashboards/requests.ts +++ b/apps/web/src/api/buster_rest/dashboards/requests.ts @@ -32,7 +32,7 @@ export const getDashboardById = async ({ /** The version number of the dashboard */ version_number?: number; }) => { - return await mainApiV2 + return await mainApi .get(`/dashboards/${id}`, { params: { password, version_number }, }) diff --git a/apps/web/src/api/buster_rest/metrics/requests.ts b/apps/web/src/api/buster_rest/metrics/requests.ts index 4da4ef9a2..0c95d991b 100644 --- a/apps/web/src/api/buster_rest/metrics/requests.ts +++ b/apps/web/src/api/buster_rest/metrics/requests.ts @@ -29,7 +29,7 @@ export const getMetric = async ({ id, ...params }: GetMetricParams & GetMetricQuery): Promise => { - return mainApiV2.get(`/metric_files/${id}`, { params }).then((res) => { + return mainApi.get(`/metric_files/${id}`, { params }).then((res) => { return res.data; }); };