HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
프로그래머스 프론트엔드 데브코스 2기
프로그래머스 프론트엔드 데브코스 2기
/
😇
오프팀
/
🔥
팀 프로젝트 문서
/
post image 속성 존재 질문

post image 속성 존재 질문

상태
기타
담당자
 
/post/create 요청에 성공했지만 image, imagePublicId 둘다 찾을 수가 없습니다.
notion image
현재 포스트 조회 api 전부 image를 찾을 수 없습니다. 다음은 해당 api에서 가져오는 속성들입니다.
  1. /posts/{{포스트 id}}
{ "likes": [], "comments": [], "_id": "title": "channel": { }, "author": { }, "createdAt": "updatedAt": "__v": }
  1. /posts/author/{{사용자id}}
{ "likes": [], "comments": [], "_id": "title": "channel": { }, "author": { }, "createdAt": "updatedAt": "__v": },
 
  1. /search/all/{{title}}
{ "likes" "comments": "_id" "title": "channel": "author": "createdAt" "updatedAt": "__v": }
 
  1. /users/{{user아이디}} 로 얻은 likes배열의 post 객체에도 image 없음…
"likes": [ { "_id": "62a76437b1b90b0c812c9b8c", //좋아요 객체 id "user": "629e29bd6d18b41c5b238ba2", // 좋아요를 누른 사람 id === 나 "post": "62a75497b1b90b0c812c9b1f",// 좋아요 누른 포스트 id "createdAt": "2022-06-13T16:22:15.565Z", "updatedAt": "2022-06-13T16:22:15.565Z", "__v": 0 } ],