This commit is contained in:
feruz 2020-03-23 10:04:19 +02:00
parent a7b8e578b7
commit 4d22cc2f57
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { Alert } from 'react-native';
import ePointApi from '../../config/api';
import { jsonStringify } from '../../utils/jsonUtils';
export const userActivity = (us, ty, bl = '', tx = '') =>
new Promise(resolve => {
@ -12,7 +13,7 @@ export const userActivity = (us, ty, bl = '', tx = '') =>
if (tx) {
params.tx = tx;
}
Alert.alert('Error1', jsonStringify(params));
ePointApi
.post('/usr-activity', params)
.then(res => {

View File

@ -463,6 +463,7 @@ export const getPostWithComments = async (user, permlink) => {
export const vote = (account, pin, author, permlink, weight) =>
_vote(account, pin, author, permlink, weight).then(resp => {
alert(resp.block_num);
userActivity(account.username, 120, resp.block_num, resp.id);
return resp;
});