diff --git a/.gitignore b/.gitignore index 3ad6676a..d6a8d1f6 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ out/ ### application ### application-secret.yml + +### +.env** \ No newline at end of file diff --git a/src/main/java/ceos/backend/domain/application/dto/response/GetResultResponse.java b/src/main/java/ceos/backend/domain/application/dto/response/GetResultResponse.java index d9f4d091..20f53b1d 100644 --- a/src/main/java/ceos/backend/domain/application/dto/response/GetResultResponse.java +++ b/src/main/java/ceos/backend/domain/application/dto/response/GetResultResponse.java @@ -47,12 +47,17 @@ private GetResultResponse( public static GetResultResponse toDocumentResult( Application application, Recruitment recruitment) { + ParsedDuration duration = null; + + if (application.getInterviewDatetime() != null) { + duration = ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime()); + } + return GetResultResponse.builder() .pass(application.getDocumentPass()) .generation(recruitment.getGeneration()) .name(application.getApplicantInfo().getName()) - .parsedDuration( - ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime())) + .parsedDuration(duration) .otDate(recruitment.getOtDate()) .attendanceStatus(application.isInterviewCheck()) .openChatUrl(recruitment.getOpenChatUrl())