Skip to content

Commit

Permalink
Rename getLinkedCustomDashboards to getCustomDashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha committed Oct 3, 2023
1 parent 869f7be commit 7cb024b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -16,7 +16,7 @@ interface Props {
savedObjectsClient: SavedObjectsClientContract;
}

export async function getLinkedCustomDashboards({
export async function getCustomDashboards({
savedObjectsClient,
}: Props): Promise<SavedApmCustomDashboard[]> {
const result = await savedObjectsClient.find<ApmCustomDashboard>({
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/apm/server/routes/custom_dashboards/route.ts
Expand Up @@ -10,7 +10,7 @@ import { createApmServerRoute } from '../apm_routes/create_apm_server_route';
import { saveServiceDashbord } from './save_service_dashboard';
import { SavedApmCustomDashboard } from '../../../common/custom_dashboards';
import { deleteServiceDashboard } from './remove_service_dashboard';
import { getLinkedCustomDashboards } from './get_linked_custom_dashboards';
import { getCustomDashboards } from './get_custom_dashboards';
import { getServicesWithDashboards } from './get_services_with_dashboards';
import { getApmEventClient } from '../../lib/helpers/get_apm_event_client';
import { rangeRt } from '../default_api_types';
Expand Down Expand Up @@ -72,7 +72,7 @@ const serviceDashboardsRoute = createApmServerRoute({
savedObjects: { client: savedObjectsClient },
} = await context.core;

const allLinkedCustomDashboards = await getLinkedCustomDashboards({
const allLinkedCustomDashboards = await getCustomDashboards({
savedObjectsClient,
});

Expand Down

0 comments on commit 7cb024b

Please sign in to comment.