mirror of
https://github.com/social-tw/social-tw-website.git
synced 2026-01-10 16:08:21 -05:00
lint fix
This commit is contained in:
@@ -108,7 +108,3 @@ const PostDetails: React.FC = () => {
|
||||
}
|
||||
|
||||
export default PostDetails
|
||||
function fetchPostById(id: string) {
|
||||
throw new Error('Function not implemented.')
|
||||
}
|
||||
|
||||
|
||||
@@ -28,9 +28,7 @@ export async function fetchCommentsByPostId(
|
||||
if (!postId) return []
|
||||
const queryParams = new URLSearchParams()
|
||||
queryParams.append('postId', postId)
|
||||
const res = await fetch(
|
||||
`${SERVER}/api/comment?${queryParams.toString()}`,
|
||||
)
|
||||
const res = await fetch(`${SERVER}/api/comment?${queryParams.toString()}`)
|
||||
return await res.json()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user