mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
Merge pull request #657 from esteemapp/bugfix/epoint-1
ePoint [HOT FIX]
This commit is contained in:
commit
be16e1461f
@ -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