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

feature: 게임방 목록 조회 로직 수정 #27

Merged
merged 4 commits into from
Nov 6, 2024
Merged

Conversation

Lee-Dahyeon
Copy link
Collaborator

⚠️ 연관된 이슈 번호

📋 게임방 조회파트 등록된 게임은 하루동안 유지되도록 로직 수정

📷 스크린샷(선택)

💬 리뷰 요구사항

filter로 추가해봤는데 다른 좋은 방법이 있다면 알려주세요!

- createdAt 칼럼 추가
- filter 날짜 로직 추가
@Lee-Dahyeon Lee-Dahyeon changed the title Feature #26 feature: 게임방 목록 조회 로직 수정 Oct 29, 2024
@Lee-Dahyeon Lee-Dahyeon self-assigned this Oct 29, 2024
@Lee-Dahyeon Lee-Dahyeon added the ✨ Feature 기능 개발 label Oct 29, 2024
Comment on lines 33 to 34
.filter(workspace -> workspace.getCreatedAt().isBefore(dateFilter)) //게임방 조회: 유지 시간은 24h
.map(workspace ->GetWorkspacesResponse.of(workspace.getId(), workspace.getCreator().getUid()))
Copy link
Contributor

Choose a reason for hiding this comment

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

isBefore가 아닌 isAfter가 되야 할 것 같아요
dateFilter를 현재부터 하루 전으로 잡았는데 workSpace 생성 시간이 dateFilter보다 작다라는건 만들어진지 하루가 지났다는 뜻이라서 본래의 의도와 정반대가 되는 것 같습니다

@LJH098
Copy link
Contributor

LJH098 commented Nov 3, 2024

Conflict 해결해주시고 리뷰 반영하시면 될 것 같아요!!

@Lee-Dahyeon Lee-Dahyeon merged commit 8504139 into develop Nov 6, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: 게임방 목록 조회 수정
2 participants