Skip to content

Commit

Permalink
No need to create a saved object anymore. This is leftover from task …
Browse files Browse the repository at this point in the history
…manager telemetry mgmt
  • Loading branch information
Aaron Caldwell committed Jun 18, 2020
1 parent a64c01f commit 92b2dd9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x-pack/plugins/maps/server/maps_telemetry/maps_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,5 @@ export async function getMapsTelemetry(config: MapsConfigType) {
const settings: SavedObjectAttribute = {
showMapVisualizationTypes: config.showMapVisualizationTypes,
};
const mapsTelemetry = buildMapsTelemetry({ mapSavedObjects, indexPatternSavedObjects, settings });
const { attributes } = await savedObjectsClient.create(TELEMETRY_TYPE, mapsTelemetry, {
id: TELEMETRY_TYPE,
overwrite: true,
});
return attributes;
return buildMapsTelemetry({ mapSavedObjects, indexPatternSavedObjects, settings });
}

0 comments on commit 92b2dd9

Please sign in to comment.