Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
Resolves #101
📝 작업 내용
오늘 많이 기록된 상위 3개 활동의 이름과 기록 횟수를 조회할 수 있는 API를 구축했습니다!
쿼리문을 작성하여 오늘의 기록된 행복 기록에서 개수가 가장 많은 상위 3개의 활동과 그 활동의 기록횟수를 조회했습니다.
🥸 수정사항
응답에 activityId는 사용되지 않으므로 삭제했습니다.
💬 리뷰 요구사항(선택)
만약 동일한 횟수로 기록된 활동이 3개 이상이라면 다음과 같은 응답을 받을 수 있습니다.
정확히 어떤 기준으로 순서가 정해진 것인지는 사실 잘 모르겠습니다만...
찾아보니 데이테베이스 시스템, 혹은 저장 순서 등에 따라 랜덤인 것 같습니다. (다만 실행할 때마다 순서가 바뀌진 않고 동일한 응답이 나옵니다.)
혹시 추가적인 정렬 기준이 필요할까요??
✅ Check List