-
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
[FEAT] PATCH /category/:categoryId 카테고리 수정 api 구현 #51
Conversation
jokj624
commented
Jan 14, 2022
- 카테고리 수정 api 구현
- now() 로 삽입 시 utc 시간으로 들어가서 dayjs로 asia/seoul 시간으로 넣었음 -> 릴리즈 때 고민해야함
[FEAT] PATCH /category/:categoryId
functions/db/category.js
Outdated
const updateCategory = async (client, categoryId, title, imageId) => { | ||
const nowTime = dayjs().tz("Asia/Seoul").format(); |
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.
nowTime보다는 currentTime이 문법에 맞는 표현이에효!
functions/db/category.js
Outdated
AND is_deleted = FALSE | ||
`, | ||
[categoryId], |
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.
탭 지워주시면 좋을거같아용
functions/db/category.js
Outdated
RETURNING * | ||
`, | ||
[data.title, data.imageId, categoryId, nowTime], |
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.
탭 지워주세용
[CHORE] 코드리뷰 반영