mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
fix endpoints
This commit is contained in:
parent
b29f51332c
commit
12938553d7
@ -45,7 +45,7 @@ export default (props) => {
|
|||||||
setUploaderVisible(false)
|
setUploaderVisible(false)
|
||||||
setFocused(false)
|
setFocused(false)
|
||||||
|
|
||||||
const response = api.put.post({ ...postData }).catch(error => {
|
const response = api.post.post({ ...postData }).catch(error => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
antd.message.error(error)
|
antd.message.error(error)
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ export default class PostsFeed extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onLikePost = async (data) => {
|
onLikePost = async (data) => {
|
||||||
let result = await this.api.put.toogleLike({ post_id: data._id }).catch(() => {
|
let result = await this.api.post.toogleLike({ post_id: data._id }).catch(() => {
|
||||||
antd.message.error("Failed to like post")
|
antd.message.error("Failed to like post")
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user