feat: RSS 수집 시 출석 상태 업데이트 및 결석/지각 벌금 자동 부과#25
Merged
Conversation
P0 #3 문제 해결 - 출석 상태 업데이트 누락: - RSS 콜백에서 새 글 생성 후 출석 상태 업데이트 - 회차 마감일 이후 제출 시 지각(LATE) 처리 - 지각 시 벌금 3,000원 자동 부과 및 DM 발송 - 정상 제출 시 SUBMITTED 상태로 변경 P0 #4 문제 해결 - 결석/지각 벌금 콜백 미설정: - attendanceChecker에 결석 콜백 설정 - 화요일 00:00 결석 판정 시 자동으로 벌금 5,000원 부과 - 결석 벌금 DM 알림 자동 발송 변경 사항: - scheduler-registry.ts: RSS 콜백에 출석 상태 업데이트 로직 추가 - 지각 판단: item.pubDate > round.endDate (23:59:59.999) - 결석 콜백: setOnAbsentCallback()으로 벌금 생성 및 알림 발송 동작 흐름: 1. RSS 폴러가 새 글 발견 2. 글 저장 + 출석 상태 업데이트 (SUBMITTED 또는 LATE) 3. 지각인 경우 벌금 생성 + DM 발송 4. 화요일 00:00 출석 체크 5. 결석자 벌금 생성 + DM 발송 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Priority 1 & 2 수정 사항: 1. 타임존 명시: roundEndDate 생성 시 KST (+09:00) 명시 2. 중복 방지 로직 주석 추가: markLate/markSubmitted/fineService.create 내부 로직 설명 3. Import 순서 정리: @blog-study/shared/db를 상단으로 이동 기존 로직 확인: - FineService.create(): 이미 내부에서 getByMemberAndRound() 체크 후 중복 시 기존 벌금 반환 - AttendanceService.markLate/markSubmitted(): 이미 PENDING 상태일 때만 업데이트 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🎯 Summary
🔴 AS-IS
🟢 TO-BE
LATE처리 + 벌금 3,000원 부과💬 참고사항
P0 feat: 프로필 이미지 업로드 및 UI 개선 #3, feat: 스터디원 목록, 프로필 개선 및 실명/닉네임 분리 #4 해결: (docs/plans/26-03-10-bot-review-findings.md 참조)
테스트 완료: 최호 계정으로 실제 "테스트 글" 발행 → 자동으로 출석 상태
SUBMITTED로 업데이트 확인동작 흐름:
SUBMITTED자동 업데이트LATE+ 벌금 3,000원 + DM지각 판단 로직:
결석 콜백:
attendanceChecker.setOnAbsentCallback()설정테스트 회차: 1000회차 (2026-03-10 ~ 2026-03-16, 지각 마감 2026-03-20)
기술 변경 사항
scheduler-registry.ts
attendanceService.markLate()+ 벌금 생성 + DM 발송attendanceService.markSubmitted()attendanceChecker.setOnAbsentCallback())import 추가
getAttendanceService,getFineService,sendFineNotificationgetDb,members(결석 콜백에서 멤버 조회)Co-Authored-By
Claude Sonnet 4.6 noreply@anthropic.com