From c185a397664be7a2117141b28ec13376265eb31c Mon Sep 17 00:00:00 2001
From: Daviti Gogshelidze <daviti1@mail.com>
Date: Fri, 14 Jun 2019 17:50:33 +0200
Subject: [PATCH] Syncronise spatial search with KG

---
 deploy/datasets/query.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/deploy/datasets/query.js b/deploy/datasets/query.js
index 973e47243..5443412fa 100644
--- a/deploy/datasets/query.js
+++ b/deploy/datasets/query.js
@@ -282,7 +282,9 @@ function getUserToken(arg) {
     const releasedOnly = !accessToken
     let publicAccessToken
     if (!accessToken && getPublicAccessToken) {
-        publicAccessToken = await getPublicAccessToken()
+        // ToDo Here was await but I removed it because of error
+        // publicAccessToken = await getPublicAccessToken()
+        publicAccessToken = getPublicAccessToken()
     }
     const option = accessToken || publicAccessToken || process.env.ACCESS_TOKEN
         ? {
-- 
GitLab