From dd2b0ece3386e2d74187223fad02918038db451a Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 5 Mar 2019 00:23:55 +0300 Subject: [PATCH] fixed missing bugs --- src/config/ePoint.js | 4 ++-- src/providers/esteem/ePoint.js | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/config/ePoint.js b/src/config/ePoint.js index 6581bb9b1..a180ed5a2 100644 --- a/src/config/ePoint.js +++ b/src/config/ePoint.js @@ -1,11 +1,11 @@ import axios from 'axios'; import Config from 'react-native-config'; -const search = axios.create({ +const ePoint = axios.create({ baseURL: Config.BACKEND_URL, headers: { 'User-Agent': Config.USER_AGENT, }, }); -export default search; +export default ePoint; diff --git a/src/providers/esteem/ePoint.js b/src/providers/esteem/ePoint.js index a726f298e..780563dd9 100644 --- a/src/providers/esteem/ePoint.js +++ b/src/providers/esteem/ePoint.js @@ -12,7 +12,14 @@ export const userActivity = (username, type, blockNumber = '', transactionNumber } try { - return ePointApi.post('/usr-activity', params).then(res => res.data); + return ePointApi + .post('/usr-activity', { + us: username, + ty: type, + bn: blockNumber, + tn: transactionNumber, + }) + .then(res => res.data); } catch (error) { return null; }