diff --git a/index.js b/index.js index 77019b6..3ece2de 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ const getPosts = async (user) => { const getCommentsForEachPost = async (posts) => { const res = await Promise.all(posts.map(post => - fetch(`${url}/comments?postId=${post.id}&_limit=4`) + fetch(`${url}/comments?postId=${post.id}&_limit=3`) )); console.log(res); const postComments = await Promise.all(res.map(r => r.json()));