mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-06 22:19:41 +03:00
log
This commit is contained in:
parent
a7b8e578b7
commit
4d22cc2f57
@ -1,5 +1,6 @@
|
|||||||
import { Alert } from 'react-native';
|
import { Alert } from 'react-native';
|
||||||
import ePointApi from '../../config/api';
|
import ePointApi from '../../config/api';
|
||||||
|
import { jsonStringify } from '../../utils/jsonUtils';
|
||||||
|
|
||||||
export const userActivity = (us, ty, bl = '', tx = '') =>
|
export const userActivity = (us, ty, bl = '', tx = '') =>
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
@ -12,7 +13,7 @@ export const userActivity = (us, ty, bl = '', tx = '') =>
|
|||||||
if (tx) {
|
if (tx) {
|
||||||
params.tx = tx;
|
params.tx = tx;
|
||||||
}
|
}
|
||||||
|
Alert.alert('Error1', jsonStringify(params));
|
||||||
ePointApi
|
ePointApi
|
||||||
.post('/usr-activity', params)
|
.post('/usr-activity', params)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
@ -463,6 +463,7 @@ export const getPostWithComments = async (user, permlink) => {
|
|||||||
|
|
||||||
export const vote = (account, pin, author, permlink, weight) =>
|
export const vote = (account, pin, author, permlink, weight) =>
|
||||||
_vote(account, pin, author, permlink, weight).then(resp => {
|
_vote(account, pin, author, permlink, weight).then(resp => {
|
||||||
|
alert(resp.block_num);
|
||||||
userActivity(account.username, 120, resp.block_num, resp.id);
|
userActivity(account.username, 120, resp.block_num, resp.id);
|
||||||
return resp;
|
return resp;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user