mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-28 01:52:56 +03:00
Merge pull request #657 from esteemapp/bugfix/epoint-1
ePoint [HOT FIX]
This commit is contained in:
commit
1a0963c3b2
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user