mirror of https://github.com/buster-so/buster.git
Merge pull request #1032 from buster-so/HotFixRevertV2Staging
hot fix for staging
This commit is contained in:
commit
f9e8b6d168
|
@ -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 },
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue