-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/search by clothes api #44
base: develop
Are you sure you want to change the base?
Conversation
feat: add fields to login api's response
src/controller/search/controller.ts
Outdated
const categoriesArray = Array.isArray(categories) | ||
? categories | ||
: [categories].filter(Boolean); | ||
const seasonsArray = Array.isArray(seasons) | ||
? seasons | ||
: [seasons].filter(Boolean); | ||
|
||
//text를 String type으로 | ||
const textString = typeof text === 'string' ? text : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 제가 코멘트를 잘못 달아뒀던 것 같습니다. 죄송합니다ㅜㅜ 요청으로 배열이 필요한 경우에는 쿼리보다 바디를 이용하는 것이 더 좋을 것 같습니다..ㅜ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reponse로 isWished도 필요할 것 같습니다..!
…EBofficial/stylevillage-server into feature/search-by-clothes-api
지금 검색어에 따른 검색결과는 잘 나오는 것 같은데 category, season,filter 반영이 잘 안되는 것 같습니다ㅜㅜ |
res가 너무 길어서 직접 테스트 해보심이 좋을 듯 합니다.
categories : Category[]
seasons : Season[]
name : string
Body에 들어갈 수 있는 key입니다.