#unverify @method -rename

This commit is contained in:
Alex
2018-06-23 23:12:31 +03:00
parent 72f1f774f5
commit 73d875f477
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ export const setVerifyStatus = ({ id }) => fetcher.put({
withCredentials: true,
});
export const unverify = ({ id }) => fetcher.put({
export const removeVerifyStatus = ({ id }) => fetcher.put({
url: `/admin/verify/${id}?verified=0`,
withCredentials: true,
});
@@ -121,7 +121,7 @@ export default {
pinComment,
unpinComment,
setVerifyStatus,
unverify,
removeVerifyStatus,
remove,
blockUser,
unblockUser,
+1 -1
View File
@@ -173,7 +173,7 @@ export default class Comment extends Component {
if (confirm('Do you want to unverify this user?')) {
this.setState({ isUserVerified: false });
api.unverify({ id: userId }).then(() => {
api.removeVerifyStatus({ id: userId }).then(() => {
api.getComment({ id }).then(comment => store.replaceComment(comment));
});
}