-
Notifications
You must be signed in to change notification settings - Fork 3
[fix] 모집기간 설정 시간 보정 #690
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
Merged
Merged
[fix] 모집기간 설정 시간 보정 #690
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
null 시 undefined 전송 방지 및 DTO 계약 정합성 확인
현재 구현은
Date | null일 때?.toISOString()로undefined를 생성합니다. API가 부분 업데이트에서undefined를 무시하는지 혹은null을 요구하는지에 따라 문제가 될 수 있습니다. 안전하게 조건부 스프레드로 키 자체를 생략하는 방식을 권장합니다.아래 스크립트로 DTO 타입과 훅 시그니처를 확인해 주세요. API가
string | null을 요구한다면, 위 스프레드 대신: null을 명시하도록 바꾸어야 합니다.🏁 Script executed:
Length of output: 2639
아래 스크립트로
ClubDescription타입 정의와updateClubDescriptionAPI 구현을 확인해주세요.🏁 Script executed:
Length of output: 1097
아직
updateClubDescription구현 위치를 찾지 못했습니다. API 파일 경로를 재확인하기 위해 아래 스크립트를 실행해 주세요.🏁 Script executed:
Length of output: 116
아래 스크립트로
updateClubDescriptionAPI 구현 파일을 찾아 시그니처를 확인해 주세요.🏁 Script executed:
Length of output: 1363
모집 기간 필드가 DTO에 정의되지 않음 및 null 처리 검토 필요
현재
RecruitEditTab.tsx에서 사용 중인useUpdateClubDescription훅은ClubDescription타입(id, description)만 허용하며, 실제 API(PUT /api/club/description)도description만 처리합니다.따라서 아래와 같이
recruitmentStart/recruitmentEnd를 포함해 호출해도correctRequestKoreanDate(null)호출 시 함수 내부 에러 가능 (optional chaining은.toISOString()만 방어)아래 위치 확인 후 적절히 수정이 필요합니다.
ClubDescription)/api/club/description)제안 드리는 수정 예시:
모집 기간 전용 훅/API 분리 사용
단일 엔드포인트로 통합 시 DTO 확장
그리고 훅과 API 시그니처를
ClubUpdatePayload로 변경해 주십시오.위 두 가지 중 적합한 방안을 선택해 반영 후 다시 검토 부탁드립니다.
🤖 Prompt for AI Agents