changing posts to reference clerkUserID rather than id in mongodb
This commit is contained in:
@@ -23,7 +23,7 @@ export default function PostsScreen() {
|
||||
)
|
||||
|
||||
async function fetchData() {
|
||||
fetch(`http://localhost:3000/api/v1/posts/user/6883ddb2640ebaa1a12e3791`)
|
||||
fetch(`http://localhost:3000/api/v1/posts/user/${user?.id}`)
|
||||
.then((res) => res.json())
|
||||
.then((json) => {
|
||||
console.log(json)
|
||||
|
||||
Reference in New Issue
Block a user