-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ♻️ db와 cache에 저장되는 타입이 다름을 고려 후 로직 변경
db에 요청: userId, followId 로 follower/following 리스트를 만든 후, userPreview와 followAt 을 추가해 cache와 같은 타입으로 변환 / cache에 요청, db요청 이후: {userPreview, followAt}[] 에 로그인 한 유저에 맞춰 isFollowing 추가 후 반환 fix: 🐛 존재하는 유저인지 검사 후 db에 write fix: 🐛 실수 수정 following->follower 프론트와 디버깅 중 발견했습니다 feat: ✨ preload 임시 적용 이후 중복되는 코드를 정리해야합니다 refactor: ♻️ 주석 삭제 및 중복되는 함수 분리 fix: 🐛 팔로우 리스트 캐시 업데이트시 배열의 push를 사용하여 무조건 뒤에 붙던 일 임시 해결 sort를 밖에서 하는 방식으로 변경할 예정입니다 feat: 🐛 isFollowing 도 cache에서 확인하도록 변경 feat: 🐛 cache된 리스트를 반환할 때도 sort한 후 반환하도록 추가 refactor: ♻️ follow시 push하기 때문에 set을 다시 호출하던 부분 삭제, 못 찾는 경우와 삭제 실패가 같은 404를 throw하여 find하지 않고 바로 delete하여 로직 줄이기 refactor: ♻️ 타입, 변수명 변경 FollowList[] -> Follow[], cache되던 형태의 FollowListCacheType를 Follow로 변경하고 원래 Follow였던 최종 반환 형태를 MyFollow로 변경, 이에 따른 dto파일명이나 pagination 타입도 함께 맞추어 변경 refactor: ♻️ 사용하는 db 변경 temp_follows -> follows fix: 🔥 콘솔로그 삭제 - close #405 - #413
- Loading branch information
Showing
11 changed files
with
302 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.