From 6fcad96e5635f7bcb661e826cc063c033c246933 Mon Sep 17 00:00:00 2001 From: feruz Date: Mon, 23 Oct 2023 12:29:39 +0300 Subject: [PATCH] change engine api --- src/common/api/hive-engine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/api/hive-engine.ts b/src/common/api/hive-engine.ts index d654014b063..859ecda0fc5 100644 --- a/src/common/api/hive-engine.ts +++ b/src/common/api/hive-engine.ts @@ -60,7 +60,7 @@ export const getTokenBalances = (account: string): Promise => { return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json", "User-Agent": "Ecency-apps 1.0" } + headers: { "Content-type": "application/json" } }) .then((r) => r.data.result) .catch((e) => { @@ -84,7 +84,7 @@ const getTokens = (tokens: string[]): Promise => { return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json", "User-Agent": "Ecency-apps 1.0" } + headers: { "Content-type": "application/json" } }) .then((r) => r.data.result) .catch((e) => { @@ -171,7 +171,7 @@ export const getMetrics: any = async (symbol?: any, account?: any) => { // return result; return axios .post(apiBase(engine.API), data, { - headers: { "Content-type": "application/json", "User-Agent": "Ecency-apps 1.0" } + headers: { "Content-type": "application/json" } }) .then((r) => r.data.result) .catch((e) => {