Skip to content

Conversation

@GwonDooHyeon
Copy link
Contributor

@GwonDooHyeon GwonDooHyeon commented Jan 15, 2025

🚀 개요

챌린지 현황 조회 구현

🔍 변경사항

  • 챌린지 테이블에 상태 컬럼 추가 ( 기존 isDeleted 컬럼 삭제 )
  • 챌린지 현황 조회 구현

⏳ 작업 내용

  • 챌린지 현황 조회 구현

📝 논의사항

@GwonDooHyeon GwonDooHyeon self-assigned this Jan 15, 2025
@GwonDooHyeon GwonDooHyeon linked an issue Jan 15, 2025 that may be closed by this pull request
2 tasks
Copy link
Member

@Eunjin3395 Eunjin3395 left a comment

Choose a reason for hiding this comment

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

기존에는 isDeleted=false, endDateTime>now 이면 진행중인 챌린지로 간주했던 것 같은데 그럼 이제는 status = ONGOING 이면 진행중인 챌린지라고 보면 되는건가요??

@GwonDooHyeon
Copy link
Contributor Author

네 맞습니다 ! 근데 그거 수정을 안했네요.. ! 다시 올릴게요

/////////// 챌린지 상태 ///////////
챌린지 생성시 status는 ONGOING
챌린지 삭제시 status는 REMOVED

매일 변경되는 오늘 날짜 = currentDateTime 가정

스케줄러 매일 00시 00분 작동
가. 챌린지의 endDateTime < currentDateTime
- 챌린지 기록이 totalCount 보다 크거나 같은 경우 status는 SUCCEED
- 챌린지 기록이 totalCount 보다 작은 경우 status는 EXPIRED

이렇게 생각했습니다

@Eunjin3395
Copy link
Member

아아 감사합니다 그럼 현재 시점에서 진행중인 챌린지는 status가 ONGOING인 애들만 해당한다고 생각하고 알림 대상 조회부분도 수정하겠습니다!

@GwonDooHyeon
Copy link
Contributor Author

넵 다시 올렸습니다

@GwonDooHyeon GwonDooHyeon merged commit 8ccfb3c into develop Jan 15, 2025
@GwonDooHyeon GwonDooHyeon deleted the feat/99 branch January 15, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ [Feat] 챌린지 현황 조회

3 participants