Closed jimin9038 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
codedang | ✅ Ready (Inspect) | Visit Preview | Sep 12, 2024 7:30am |
The preview deployment is ready. 🟢
Open Preview | Open Build Logs
Last updated at: 2024-09-12 07:31:25 CET
Description
contest가 upcoming인 경우 contest score를 계산하지 않습니다.
보통의 경우 upcoming인 경우 registered 되어있을 수 없으므로 contest score를 계산하지 않아 오류가 발생하지 않았지만, duplicate contest의 경우 대회가 시작하지 않았을 때에도 registered되어 있으므로, contest score를 계산하려고 시도합니다. 하지만 upcoming contest의 경우 백엔드에서 contestProblem을 가져올 수 없으므로 contest score도 계산할 수 없습니다. 이에 따라 contest가 upcoming인 경우 contest score를 계산하지 않습니다.
추가적으로 calculateContestScore에서 사용하는 api를 safeFetcherWithAuth로 변경하고 try catch로 에러를 잡아 핸들링하도록 리팩토링합니다
Additional context
Before submitting the PR, please make sure you do the following
fixes #123
).