Skip to content

Commit

Permalink
Merge pull request #150 from TEAM-YOAJUNG/hotfix/aplication-serviceMe…
Browse files Browse the repository at this point in the history
…sh-fixV2

[HOTFIX] applicationStatus 부분 수정
  • Loading branch information
opp-13 authored Nov 20, 2024
2 parents 437dfaa + cf5743b commit a28bb75
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,19 @@ public ApplicationResponseDTO.ToCreateApplicationDTO createApplication(Long recr
}
}

String applicationStatus = null;
if (!Objects.equals(toApplyClub.getStatus(), "TEMPORARY_SAVED")) {
applicationStatus = serviceMeshService.getFirstStatus(toApplyClub.getClubId(), recruitmentId);
} else {
applicationStatus = toApplyClub.getStatus();
}
// String applicationStatus = null;
// if (!Objects.equals(toApplyClub.getStatus(), "TEMPORARY_SAVED")) {
// applicationStatus = serviceMeshService.getFirstStatus(toApplyClub.getClubId(), recruitmentId);
// } else {
// applicationStatus = toApplyClub.getStatus();
// }

Application application = Application.builder()
.userId(userId)
.recruitmentId(recruitmentId)
.applicationFormId(toApplyClub.getApplicationFormId())
.applicationBody(toApplyClub.getFormBody())
.applicationStatus(applicationStatus)
.applicationStatus(toApplyClub.getStatus())
.clubId(toApplyClub.getClubId())
.submitDate(LocalDateTime.now())
.build();
Expand Down

0 comments on commit a28bb75

Please sign in to comment.