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