Skip to content

Commit

Permalink
updated type
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Apr 6, 2020
1 parent 8a6d549 commit ce1ed42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class KibanaTelemetryAdapter {
bucket.monitor_name_stats = {
min_length: monitorNameStats?.min_length ?? 0,
max_length: monitorNameStats?.max_length ?? 0,
avg_length: +monitorNameStats?.avg_length?.toFixed(2) ?? 0,
avg_length: +(monitorNameStats?.avg_length?.toFixed(2) ?? 0),
};

bucket.observer_location_name_stats = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export const createLogPageViewRoute: UMRestApiRouteFactory = () => ({
handler: async (
{ savedObjectsClient, callES, dynamicSettings },
_context,
_request,
request,
response
): Promise<any> => {
await KibanaTelemetryAdapter.countNoOfUniqueMonitorAndLocations(callES, savedObjectsClient);
const pageViewResult = KibanaTelemetryAdapter.countPageView(_request.body as PageViewParams);
const pageViewResult = KibanaTelemetryAdapter.countPageView(request.body as PageViewParams);

return response.ok({
body: pageViewResult,
Expand Down

0 comments on commit ce1ed42

Please sign in to comment.