Skip to content

Commit

Permalink
refactor: 채플 이수 학점 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Apr 5, 2024
1 parent 9a0e40d commit 37a8bfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void generateOrModifyCompletedCredit(User user, GraduationResult graduati
.collect(Collectors.toMap(
Function.identity(),
detailGraduationResult -> completedCredits.stream()
.filter(cc -> cc.getGraduationCategory().equals(detailGraduationResult.getGraduationCategory()))
.filter(completedCredit -> completedCredit.getGraduationCategory().equals(detailGraduationResult.getGraduationCategory()))
.findFirst()
));

Expand Down Expand Up @@ -78,7 +78,7 @@ private CompletedCredit createChapelCompletedCreditModel(List<CompletedCredit> c
.map(completedCredit -> CompletedCredit.builder()
.id(completedCredit.getId())
.totalCredit(ChapelResult.GRADUATION_COUNT)
.takenCredit(graduationResult.getChapelResult().getTakenChapelCredit())
.takenCredit(graduationResult.getChapelResult().getTakenCount())
.graduationCategory(CHAPEL).build())

Check warning on line 82 in src/main/java/com/plzgraduate/myongjigraduatebe/completedcredit/application/service/GenerateOrModifyCompletedCreditService.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/plzgraduate/myongjigraduatebe/completedcredit/application/service/GenerateOrModifyCompletedCreditService.java#L79-L82

Added lines #L79 - L82 were not covered by tests
.findFirst()
.orElse(CompletedCredit.builder()
Expand Down

0 comments on commit 37a8bfe

Please sign in to comment.