Skip to content

Commit

Permalink
Merge pull request #153 from Nexters/feature/noissue
Browse files Browse the repository at this point in the history
LexoRank index 수정
  • Loading branch information
haeun-i authored Mar 1, 2024
2 parents 38c48db + 898acf2 commit 9856685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/pcb/audy/global/util/LexoRankUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public String getLexoRank(Long courseId, int order) {
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order).getSequence());
return nowRank.genNext().toString();
} else { // 어떤 것의 사이에 들어간다고 했을 때
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order).getSequence());
LexoRank nextRank = LexoRank.parse(pinGetResList.get(order + 1).getSequence());
LexoRank nowRank = LexoRank.parse(pinGetResList.get(order - 1).getSequence());
LexoRank nextRank = LexoRank.parse(pinGetResList.get(order).getSequence());
return nowRank.between(nextRank).toString();
}
}
Expand Down

0 comments on commit 9856685

Please sign in to comment.