Skip to content
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

Merged
merged 9 commits into from
May 27, 2024
Merged

#516 blockedlist #519

merged 9 commits into from
May 27, 2024

Conversation

TaehyeonPark
Copy link
Contributor

Summary

It closes #516

ban 관련 모든 api는 /users router의 하위 api로 동작합니다.

  • /users/isBanned
  • /users/getBanRecord

@TaehyeonPark TaehyeonPark linked an issue May 20, 2024 that may be closed by this pull request
3 tasks
@TaehyeonPark TaehyeonPark requested review from kmc7468, withSang and 14KGun and removed request for kmc7468 and withSang May 20, 2024 17:39
@TaehyeonPark TaehyeonPark self-assigned this May 20, 2024
@TaehyeonPark TaehyeonPark added the ⚒ enhancement New feature or request label May 20, 2024
src/services/users.js Outdated Show resolved Hide resolved
src/services/users.js Outdated Show resolved Hide resolved
src/routes/docs/users.js Outdated Show resolved Hide resolved
src/services/users.js Outdated Show resolved Hide resolved
src/services/users.js Outdated Show resolved Hide resolved
@TaehyeonPark TaehyeonPark requested review from kmc7468 and chlehdwon May 27, 2024 16:16
Copy link
Contributor

@chlehdwon chlehdwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! 수고많으셨습니다 :)

Copy link
Member

@kmc7468 kmc7468 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocked List 자체는 구현이 잘 된 것 같습니다! 다만 실제 서비스 정지로 이어지는 코드도 필요할 것 같아요. 별도 PR로 분리해서 진행해도 될 것 같긴 합니다.

// 유저의 서비스 정지 여부를 반환합니다.
router.get("/isBanned", userHandlers.isBannedHandler);

// 유저의 서비스 정지 여부를 반환합니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주석 설명이 바뀌어야 할 것 같습니다!

@TaehyeonPark TaehyeonPark requested a review from kmc7468 May 27, 2024 18:06
properties: {
userId: {
type: "string",
description: "사용자의 UUID",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UUID 보다는 단순히 Object ID라고 하는 것이 더 적절한 표현일 것 같아요!

},
});
if (!result) {
return res.status(400).json("Users/isBanned : there is no ban record");
Copy link
Member

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로 생각하는게 더 좋을 것 같습니다.

@TaehyeonPark TaehyeonPark requested a review from kmc7468 May 27, 2024 18:49
Copy link
Member

@kmc7468 kmc7468 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 빠른 수정사항 반영 감사드립니다. 수고하셨습니다!

@TaehyeonPark TaehyeonPark merged commit 2cbdc29 into dev May 27, 2024
1 check passed
@TaehyeonPark TaehyeonPark deleted the #516-blockedlist branch May 27, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚒ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BlockedList
3 participants