From 1583262df180006e70112c74373de3f39bfcb11b Mon Sep 17 00:00:00 2001
From: Ildar Kamalov <i.kamalov@adguard.com>
Date: Tue, 15 Oct 2019 12:31:01 +0300
Subject: [PATCH] - client: rename helper

---
 client/src/api/Api.js         | 4 ++--
 client/src/helpers/helpers.js | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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