-
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
#516 blockedlist #519
#516 blockedlist #519
Conversation
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.
LGTM!! 수고많으셨습니다 :)
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.
Blocked List 자체는 구현이 잘 된 것 같습니다! 다만 실제 서비스 정지로 이어지는 코드도 필요할 것 같아요. 별도 PR로 분리해서 진행해도 될 것 같긴 합니다.
src/routes/users.js
Outdated
// 유저의 서비스 정지 여부를 반환합니다. | ||
router.get("/isBanned", userHandlers.isBannedHandler); | ||
|
||
// 유저의 서비스 정지 여부를 반환합니다. |
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.
주석 설명이 바뀌어야 할 것 같습니다!
src/routes/docs/users.js
Outdated
properties: { | ||
userId: { | ||
type: "string", | ||
description: "사용자의 UUID", |
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.
UUID 보다는 단순히 Object ID라고 하는 것이 더 적절한 표현일 것 같아요!
src/services/users.js
Outdated
}, | ||
}); | ||
if (!result) { | ||
return res.status(400).json("Users/isBanned : there is no ban record"); |
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.
빈 Array는 true로 평가되기 때문에, 이 부분은 사실 500 Internal Server Error로 생각하는게 더 좋을 것 같습니다.
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.
LGTM! 빠른 수정사항 반영 감사드립니다. 수고하셨습니다!
Summary
It closes #516
ban
관련 모든 api는/users
router의 하위 api로 동작합니다./users/isBanned
/users/getBanRecord