Merge pull request #1032 from buster-so/HotFixRevertV2Staging

hot fix for staging
This commit is contained in:
wellsbunk5 2025-09-22 10:49:28 -06:00 committed by GitHub
commit f9e8b6d168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export const getDashboardById = async ({
/** The version number of the dashboard */
version_number?: number;
}) => {
return await mainApiV2
return await mainApi
.get<GetDashboardResponse>(`/dashboards/${id}`, {
params: { password, version_number },
})

View File

@ -29,7 +29,7 @@ export const getMetric = async ({
id,
...params
}: GetMetricParams & GetMetricQuery): Promise<GetMetricResponse> => {
return mainApiV2.get<GetMetricResponse>(`/metric_files/${id}`, { params }).then((res) => {
return mainApi.get<GetMetricResponse>(`/metric_files/${id}`, { params }).then((res) => {
return res.data;
});
};