#remove @method -rename

This commit is contained in:
Alex
2018-06-23 23:13:45 +03:00
parent 73d875f477
commit 0b36b79d16
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ export const removeVerifyStatus = ({ id }) => fetcher.put({
withCredentials: true,
});
export const remove = ({ id }) => fetcher.delete({
export const removeComment = ({ id }) => fetcher.delete({
url: `/admin/comment/${id}?url=${url}`,
withCredentials: true,
});
@@ -122,7 +122,7 @@ export default {
unpinComment,
setVerifyStatus,
removeVerifyStatus,
remove,
removeComment,
blockUser,
unblockUser,
getBlocked,
+1 -1
View File
@@ -213,7 +213,7 @@ export default class Comment extends Component {
isReplying: false,
});
api.remove({ id }).then(() => {
api.removeComment({ id }).then(() => {
api.getComment({ id }).then(comment => store.replaceComment(comment));
});
}