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

[Server] unfollow 요청 처리 #50

Closed
5 tasks done
NaayoungKwon opened this issue Nov 15, 2022 · 0 comments
Closed
5 tasks done

[Server] unfollow 요청 처리 #50

NaayoungKwon opened this issue Nov 15, 2022 · 0 comments
Assignees
Labels
✨ feature 기능 추가 🌐 server 서버 작업
Milestone

Comments

@NaayoungKwon
Copy link
Collaborator

NaayoungKwon commented Nov 15, 2022

🤷‍♂️ Description

Client의 특정 사용자 unFollow 요청 시 현재 사용자(client) 와 Follow할 user document에 삭제

📒 Remarks

  • user의 nickname 기반 _id 찾기
  • 현재 요청하는 사용자 id를 access token을 사용해 값 가져오기
  • user의 following 배열에 _id 삭제
  • followed 되는 User에 follwer 배열에 현재 사용자 _Id 삭제
  • API response
@NaayoungKwon NaayoungKwon added 🌐 server 서버 작업 ✨ feature 기능 추가 labels Nov 15, 2022
@NaayoungKwon NaayoungKwon added this to the ⛰️ Week2 milestone Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature 기능 추가 🌐 server 서버 작업
Projects
None yet
Development

No branches or pull requests

2 participants