bug(graduate): 백엔드 DTO 구조, 필드명 변경 사항 반영 및 파일 미리보기 오류 수정#218
Merged
kim-subsub merged 4 commits intodevelopfrom Jan 8, 2026
Merged
bug(graduate): 백엔드 DTO 구조, 필드명 변경 사항 반영 및 파일 미리보기 오류 수정#218kim-subsub merged 4 commits intodevelopfrom
kim-subsub merged 4 commits intodevelopfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
kim-subsub
approved these changes
Jan 7, 2026
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
Tasks
To Reviewer
전체적인 오류 수정 완료했습니다.
axios 파일에서 요청의 baseURL(aics-api, aics-admin, aics-auth)을 결정하는 로직이 함수형 엔드포인트에서 정상적으로 작동하지 않는 점을 발견했습니다.
이게 기존 로직인데, 문제는 if (typeof value === 'string') 이 함수형 엔드포인트는 제대로 처리를 하지 못해서, paths에 함수형 엔드포인트를 넣지 못한 것 부터 발생합니다.
그렇게 특정 path(어드민, 유저, 어스) 그룹에 함수형 엔드포인트가 들어가지 못한 상황에서,
만약 자격증 파일 조회를 한다면, 기대 로직은
selectInstanceByRequest가/api/v1/admin/certificate/1요청을getAllEndpointPaths으로 받아온/api/v1/admin/certificate와 비교하여, adminInstance(baseURL: aics-admin)를 사용하는 것인데.실제 작동은 함수형 엔드포인트를 path에 담아두지 못하여, 비교가 X > if문 다 지나가고 userInstance 접두사를 달아줌 > 잘못된 서버로 요청 > 404 Not Found
따라서 이런 로직은 그냥
으로 간략화 시켜 해결했습니다.
기존 방식보단 직접적으로 문자열이 노출되는게 조금 걸리는데요. 더 좋은 방법이 있을 듯 합니다.
Screenshot