- client: rename helper

This commit is contained in:
Ildar Kamalov 2019-10-15 12:31:01 +03:00
parent 7b29c56791
commit 1583262df1
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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()}`;