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

[Feat] 인사이트 생성 시 챌린지 참가 현황 조회 API 수정 반영 #255

Merged
merged 5 commits into from
Mar 19, 2023

Conversation

heoboseong7
Copy link
Collaborator

관련 Issue

작업 내용

  • 챌린지 참가 현황 조회 API todayRecorded, weekCompleted 필드 추가

Figma 링크

image

@heoboseong7 heoboseong7 added the enhancement New feature or request label Mar 18, 2023
@heoboseong7 heoboseong7 self-assigned this Mar 18, 2023
Period between = Period.between(today, createdAt);
Period between = Period.between(createdAt, today);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

거꾸로 넣고 있었네요,,,

@github-actions
Copy link

테스트통과 🤖

1 similar comment
@github-actions
Copy link

테스트통과 🤖

@@ -159,10 +159,15 @@ public boolean isTodayRecorded(User user) {
return insightQueryRepository.existByWriterAndCreatedAtBetweenAndValidTrue(user, startDate, endDate);
}

public boolean isThisWeekCompleted(ChallengeParticipation participation) {
Long validNumber = insightQueryRepository.countValidByParticipation(participation);
log.info("validNumber = {}, currentWeek = {}, insightPerWeek = {}", validNumber, participation.getCurrentWeek(), participation.getInsightPerWeek());
Copy link
Collaborator

Choose a reason for hiding this comment

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

우리 로그찍는거랑 형식 비슷하게 맞춰주시면 좋을듯요!

@github-actions
Copy link

테스트통과 🤖

@heoboseong7 heoboseong7 merged commit ec6d034 into main Mar 19, 2023
@heoboseong7 heoboseong7 deleted the issue-#254 branch March 19, 2023 02:26
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.

[Feat] 인사이트 생성 시 챌린지 참가 현황 조회 API 수정 반영
2 participants