diff --git a/src/main/java/gitbal/backend/api/univcert/service/UnivService.java b/src/main/java/gitbal/backend/api/univcert/service/UnivService.java index 28f59a6..f1c8232 100644 --- a/src/main/java/gitbal/backend/api/univcert/service/UnivService.java +++ b/src/main/java/gitbal/backend/api/univcert/service/UnivService.java @@ -50,8 +50,10 @@ private void clearCertifiedList(Map response, String email) thro else log.error("[clearResponse] clear fail"); } + //TODO : 이거 오류 뱉을 수 있게 하기 private UnivCertResponseDto responsetoDto(Map univCertResponse, String successMessage) { boolean success = Boolean.TRUE.equals(univCertResponse.get("success")); + if(!success) throw new UnivCertCodeException(); int status = success ? 200 : (Integer) univCertResponse.get("code"); String message = success ? successMessage : (String) univCertResponse.get("message");