diff --git a/client/src/api/Api.js b/client/src/api/Api.js index c067d3f3..c5ced2b8 100644 --- a/client/src/api/Api.js +++ b/client/src/api/Api.js @@ -1,6 +1,6 @@ import axios from 'axios'; -import { getPathWithQueryParams } from '../helpers/helpers'; +import { getPathWithQueryString } from '../helpers/helpers'; class Api { baseUrl = 'control'; @@ -491,7 +491,7 @@ class Api { getQueryLog(params) { const { path, method } = this.GET_QUERY_LOG; - const url = getPathWithQueryParams(path, params); + const url = getPathWithQueryString(path, params); return this.makeRequest(url, method); } diff --git a/client/src/helpers/helpers.js b/client/src/helpers/helpers.js index fd9e5d3a..ced2e9ad 100644 --- a/client/src/helpers/helpers.js +++ b/client/src/helpers/helpers.js @@ -323,7 +323,7 @@ export const normalizeWhois = (whois) => { export const isValidQuestionType = type => type && DNS_RECORD_TYPES.includes(type.toUpperCase()); -export const getPathWithQueryParams = (path, params) => { +export const getPathWithQueryString = (path, params) => { const searchParams = new URLSearchParams(params); return `${path}?${searchParams.toString()}`;