Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Sep 6, 2020
1 parent 404ba23 commit 4023e0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '../../../../../../common/search_strategy/security_solution/network';

export const getDnsEdges = (response: IEsSearchResponse<unknown>): NetworkDnsEdges[] =>
formatDnsEdges(getOr([], `aggregations.dns_name_query_count.buckets`, response));
formatDnsEdges(getOr([], `aggregations.dns_name_query_count.buckets`, response.rawResponse));

export const formatDnsEdges = (buckets: NetworkDnsBuckets[]): NetworkDnsEdges[] =>
buckets.map((bucket: NetworkDnsBuckets) => ({
Expand Down

0 comments on commit 4023e0a

Please sign in to comment.