Merge pull request #657 from esteemapp/bugfix/epoint-1

ePoint [HOT FIX]
This commit is contained in:
uğur erdal 2019-03-05 19:57:45 +03:00 committed by GitHub
commit be16e1461f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

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

View File

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